#2F5512#2F5512

#2F5512 is a dark, moderate yellow-green. Relative luminance 0.071; OKLCH L 40.6% C 0.104 H 134.7°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#2F5512
RGBrgb(47, 85, 18)
HSLhsl(94, 65%, 20%)
HSVhsv(94, 79%, 33%)
CMYKcmyk(44.7%, 0%, 78.8%, 66.7%)
CIE-LABlab(32.13, -26.19, 32.88)
CIE-LCHlch(32.13, 42.04, 128.54°)
OKLaboklab(40.62% -0.0732 0.074)
OKLCHoklch(40.62% 0.104 134.7)
XYZxyz(4.5299, 7.1448, 1.7125)
Luminance0.0714 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5512 #381255
analogous
#505512 #2F5512 #125516
triadic
#2F5512 #122F55 #55122F
tetradic
#2F5512 #125055 #381255 #551612
square
#2F5512 #125055 #381255 #551612
split-complementary
#2F5512 #161255 #551250
monochromatic
#0E1905 #132207 #2F5512 #4B881D #67BA27

Accessibility & contrast

On white

8.65
#2F5512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2F5512 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5512
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5512#FFFFFF#000000##FFFFFF
##2F55121.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584E06
Deuteranopia (green-blind)
#534A19
Tritanopia (blue-blind)
#2E5148
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f5512;
/* rgb */ color: rgb(47, 85, 18);
/* oklch */ color: oklch(40.6% 0.104 134.7);
Tailwind
colors: {
  custom: {
    50: '#6b8555',
    500: '#2f5512',
    950: '#000000',
  },
}
SCSS
$custom: #2f5512;
$custom-light: #6b8555;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5512",
  "rgb": {
    "r": 47,
    "g": 85,
    "b": 18
  },
  "hsl": {
    "h": 94.03,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.40617,
    "c": 0.10409,
    "h": 134.7
  },
  "luminance": 0.07145
}

Semantic roles & 50–950 ramp

primary
#2F5512
secondary
#67358E
accent
#40E89F
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5512

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

Preview Lab → · Contrast checker → · Palette generator →

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