#2F5213#2F5213

#2F5213 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.8% C 0.099 H 134.2°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#2F5213
RGBrgb(47, 82, 19)
HSLhsl(93, 62%, 20%)
HSVhsv(93, 77%, 32%)
CMYKcmyk(42.7%, 0%, 76.8%, 67.8%)
CIE-LABlab(31.08, -24.67, 31.39)
CIE-LCHlch(31.08, 39.93, 128.17°)
OKLaboklab(39.76% -0.069 0.071)
OKLCHoklch(39.76% 0.099 134.2)
XYZxyz(4.3070, 6.6857, 1.6795)
Luminance0.0669 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5213 #361352
analogous
#4F5213 #2F5213 #135216
triadic
#2F5213 #132F52 #52132F
tetradic
#2F5213 #134F52 #361352 #521613
square
#2F5213 #134F52 #361352 #521613
split-complementary
#2F5213 #161352 #52134F
monochromatic
#0E1906 #132007 #2F5213 #4B841F #68B52A

Accessibility & contrast

On white

8.99
#2F5213 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2F5213 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5213
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5213#FFFFFF#000000##FFFFFF
##2F52131.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B09
Deuteranopia (green-blind)
#514819
Tritanopia (blue-blind)
#2F4F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f5213;
/* rgb */ color: rgb(47, 82, 19);
/* oklch */ color: oklch(39.8% 0.099 134.2);
Tailwind
colors: {
  custom: {
    50: '#6b8355',
    500: '#2f5213',
    950: '#000000',
  },
}
SCSS
$custom: #2f5213;
$custom-light: #6b8355;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5213",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 19
  },
  "hsl": {
    "h": 93.333,
    "s": 62.376,
    "l": 19.804
  },
  "oklch": {
    "l": 0.39758,
    "c": 0.09904,
    "h": 134.2
  },
  "luminance": 0.06686
}

Semantic roles & 50–950 ramp

primary
#2F5213
secondary
#65368A
accent
#42E59D
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F5213

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2F5213 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva