#2F5415#2F5415

#2F5415 is a dark, moderate yellow-green. Relative luminance 0.070; OKLCH L 40.4% C 0.100 H 135.0°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#2F5415
RGBrgb(47, 84, 21)
HSLhsl(95, 60%, 21%)
HSVhsv(95, 75%, 33%)
CMYKcmyk(44%, 0%, 75%, 67.1%)
CIE-LABlab(31.80, -25.47, 31.24)
CIE-LCHlch(31.80, 40.31, 129.18°)
OKLaboklab(40.36% -0.071 0.071)
OKLCHoklch(40.36% 0.1 135)
XYZxyz(4.4779, 6.9989, 1.8243)
Luminance0.0700 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5415 #3A1554
analogous
#4E5415 #2F5415 #15541A
triadic
#2F5415 #152F54 #54152F
tetradic
#2F5415 #154E54 #3A1554 #541A15
square
#2F5415 #154E54 #3A1554 #541A15
split-complementary
#2F5415 #1A1554 #54154E
monochromatic
#0E1806 #142309 #2F5415 #4A8521 #66B62D

Accessibility & contrast

On white

8.75
#2F5415 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F5415
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5415#FFFFFF#000000##FFFFFF
##2F54151.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574D0C
Deuteranopia (green-blind)
#524A1B
Tritanopia (blue-blind)
#2E5147
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f5415;
/* rgb */ color: rgb(47, 84, 21);
/* oklch */ color: oklch(40.4% 0.100 135.0);
Tailwind
colors: {
  custom: {
    50: '#6b8456',
    500: '#2f5415',
    950: '#000000',
  },
}
SCSS
$custom: #2f5415;
$custom-light: #6b8456;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5415",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 21
  },
  "hsl": {
    "h": 95.238,
    "s": 60,
    "l": 20.588
  },
  "oklch": {
    "l": 0.40355,
    "c": 0.10044,
    "h": 135
  },
  "luminance": 0.06999
}

Semantic roles & 50–950 ramp

primary
#2F5415
secondary
#6A398C
accent
#45E3A2
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5415

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

Preview Lab → · Contrast checker → · Palette generator →

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