Photo in the color Sap green
Pictured: Sap green
rgb(80, 125, 42)
#507D2A

Sap Green #507D2A RGB Color Code

Sap Green (#507D2A) is a moderately saturated, medium green. In RGB it is made of 31% red, 49% green and 16% blue (R 80, G 125, B 42). The green channel is the strongest. In HSL it has a hue of 93Β°, 50% saturation and 33% lightness. Its relative luminance is 0.165, so white text is easier to read on top of it. For print, a rough CMYK match is 36% cyan, 0% magenta, 66% yellow and 51% black. Check it against your printer's ICC profile before you print. It is a cool color. It goes well with warm oranges and reds for contrast. For a calm, matching look, use nearby cool tones.

Open in color picker

Sap Green color codes

#507D2A in every common color format. Click a value to copy it.

FormatValueNotesCopy
HEX #507D2A Valid CSS
RGB rgb(80, 125, 42) Valid CSS
HSL hsl(93, 50%, 33%) Valid CSS
HSV / HSB hsv(93, 66%, 49%) Not a CSS format
HWB hwb(93 16% 51%) Valid CSS
CMYK cmyk(36%, 0%, 66%, 51%) Approximate (no ICC profile)
OKLCH oklch(53.86% 0.1238 133.29) Valid CSS
OKLab oklab(53.86% -0.0848 0.0901) Valid CSS
CIELAB lab(47.79% -27.21 38.57) D50, as in CSS
CIELCH lch(47.79% 47.2 125.21) Valid CSS
Display P3 color(display-p3 0.3532 0.4856 0.213) Valid CSS
XYZ (D65) color(xyz-d65 0.1106 0.1654 0.048) Valid CSS
Decimal 5274922 Integer (0xRRGGBB)

CMYK here is a rough screen match without an ICC profile. See CMYK and print. Relative luminance: 0.1654. Nearest web-safe color: #666633.

Mix Sap Green with other colors

See what #507D2A makes with red paint, under a green light, printed with cyan ink and in a digital blend with blue. Click a picture to change the colors and amounts in the color mixer.

Use Sap Green in your code

Ready to paste into CSS, Sass, Tailwind, iOS, Android and Flutter. Click the icon to copy a line.

WhereCodeCopy
CSS variable--sap-green: #507D2A;
Sass variable$sap-green: #507D2A;
Tailwind CSS v4@theme { --color-sap-green: #507D2A; }
Tailwind CSS v3 configcolors: { 'sap-green': '#507D2A' }
SwiftUIColor(red: 0.314, green: 0.49, blue: 0.165)
UIKitUIColor(red: 0.314, green: 0.49, blue: 0.165, alpha: 1)
Android XML<color name="sap_green">#FF507D2A</color>
Flutter and Jetpack ComposeColor(0xFF507D2A)

Accessibility and contrast

White text works best on #507D2A (4.87:1, AA). Here is how #507D2A does as a text color:

Large heading text
Body text at 16px. The quick brown fox jumps over the lazy dog.
4.87:1 on white
APCA Lc 74
AA
Large heading text
Body text at 16px. The quick brown fox jumps over the lazy dog.
4.31:1 on black
APCA Lc -28
AA LargeTry #53802D

Check this color against any background in the contrast checker. WCAG ratios and APCA Lc values measure different things, so one can't stand in for the other. Learn more.

How people with color blindness see Sap Green

#507D2A next to its complement and its two triadic colors, as seen with each type of color blindness.

  • Normal visionhow most people see it
  • Protanopiano red cones, about 1% of men
  • Deuteranopiano green cones, the most common type
  • Tritanopiano blue cones, very rare
  • Achromatopsiano color at all, very rare

#507D2A stays easy to tell apart from its complement and triadic colors for the common types of color blindness. Try your own colors in the color blindness simulator.

About the color Sap Green

Juice from buckthorn berries

Sap green began as a paint made from plants. Painters took the juice of ripe buckthorn berries and mixed it with alum. The Wikipedia section on sap green cites the 1823 EncyclopΓ¦dia Britannica for this recipe.

Berry colors like this had one big flaw. They faded quickly in light, which made them a poor pick for oil paintings.

Sap green in a tube today

Paint makers still sell sap green, but the berries are gone. Modern tubes with this name are blends of synthetic pigments. Many are built on phthalocyanine green mixed with a yellow. Bob Ross kept sap green on his palette in The Joy of Painting, so many people know the name from his trees and grassy hills.

About #507D2A

No paint maker is named as the source of this code, and Wikipedia marks it as unsourced. It is a dull mid green with a touch of olive. Close neighbors are fern green and dark olive green. Hooker's green is another old painter's green, but it is cooler and bluer.

Sap Green in a user interface

A sample app screen with #507D2A as the main color, on a light and a dark theme.

Light theme

Dark theme

Buttons and bars use #507D2A as it is. On the dark theme, #507D2A is too hard to read as text (3.64:1), so links, the badge and outline text use #5F8C3A there (4.48:1). Build a full color scheme around it in the UI color preview.

Color harmonies for Sap Green

These schemes turn the hue of #507D2A around the color wheel. Each swatch links to its own page.

Complementary

Two colors on opposite sides of the wheel. This gives the most contrast.

Open palette

Analogous

Hues that sit next to each other and look good together.

Open palette

Triadic

Three hues spaced evenly around the wheel. Bold, but still balanced.

Open palette

Split complementary

A base color plus the two hues on each side of its opposite. Strong contrast that clashes less.

Open palette

Tetradic (rectangle)

Two pairs of opposite colors. Let one color lead and use the others less.

Open palette

Square

Four hues 90Β° apart, spread evenly around the wheel.

Open palette

Monochromatic

One hue at different levels of lightness and saturation.

Open palette

Gradients with Sap Green

Four CSS gradients made from #507D2A. Copy the code, or open one in the gradient generator to change it.

Soft tint

From a pale tint to the full color.

background: linear-gradient(90deg, #DAE4D4, #507D2A);

Edit in the gradient generator

Deep shade

The color fading into a dark shade.

background: linear-gradient(180deg, #507D2A, #101E05);

Edit in the gradient generator

Analogous

Its two neighbors on the color wheel.

background: linear-gradient(135deg, #7A7D2A, #507D2A, #2A7D2E);

Edit in the gradient generator

Triadic

A bold blend with a triadic color, through a clean middle.

background: linear-gradient(135deg, #507D2A, #3A695D, #2A507D);

Edit in the gradient generator

Shades, tints and tones of Sap Green

Shades are darker, tints are lighter and tones are grayer. We make them in OKLCH so the steps look even. Hover a step to see its code, or click it to open it.

Design system scale (50 to 950)

Sap Green sits at step 600. Export the full scale as CSS variables or Tailwind tokens from the picker.

  1. 50
    ECFEE0
  2. 100
    DEF6CF
  3. 200
    C7E7B2
  4. 300
    A7CF8C
  5. 400
    85B364
  6. 500
    679644
  7. 600
    507D2A
  8. 700
    3A6216
  9. 800
    2C4D0B
  10. 900
    1F3808
  11. 950
    14210A

Closest RAL, Tailwind and CSS colors

The nearest match to #507D2A in three color systems that designers and builders use.

Ξ”E is the distance in OKLab: under 2 is hard to see, over 10 is a clearly different color. Browse all RAL colors, the Tailwind palette or the 148 CSS color names. RAL values on screens are only a guide, so check a real color chart before you order paint.

The named colors that look closest to this one (Ξ”E in OKLab). Browse all shades of green or search the color library.