#2F5412#2F5412

#2F5412 is a dark, moderate yellow-green. Relative luminance 0.070; OKLCH L 40.3% C 0.103 H 134.5°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#2F5412
RGBrgb(47, 84, 18)
HSLhsl(94, 65%, 20%)
HSVhsv(94, 79%, 33%)
CMYKcmyk(44%, 0%, 78.6%, 67.1%)
CIE-LABlab(31.78, -25.72, 32.53)
CIE-LCHlch(31.78, 41.46, 128.33°)
OKLaboklab(40.33% -0.0719 0.0732)
OKLCHoklch(40.33% 0.103 134.5)
XYZxyz(4.4517, 6.9884, 1.6865)
Luminance0.0699 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5412 #371254
analogous
#505412 #2F5412 #125416
triadic
#2F5412 #122F54 #54122F
tetradic
#2F5412 #125054 #371254 #541612
square
#2F5412 #125054 #371254 #541612
split-complementary
#2F5412 #161254 #541250
monochromatic
#0E1905 #132207 #2F5412 #4B861D #67B928

Accessibility & contrast

On white

8.76
#2F5412 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2F5412 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5412
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5412#FFFFFF#000000##FFFFFF
##2F54121.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574D07
Deuteranopia (green-blind)
#524A18
Tritanopia (blue-blind)
#2E5047
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f5412;
/* rgb */ color: rgb(47, 84, 18);
/* oklch */ color: oklch(40.3% 0.103 134.5);
Tailwind
colors: {
  custom: {
    50: '#6b8455',
    500: '#2f5412',
    950: '#000000',
  },
}
SCSS
$custom: #2f5412;
$custom-light: #6b8455;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5412",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 18
  },
  "hsl": {
    "h": 93.636,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.40328,
    "c": 0.10266,
    "h": 134.5
  },
  "luminance": 0.06989
}

Semantic roles & 50–950 ramp

primary
#2F5412
secondary
#66358D
accent
#40E89E
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5412

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

Preview Lab → · Contrast checker → · Palette generator →

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