#2F5813#2F5813

#2F5813 is a dark, moderate yellow-green. Relative luminance 0.076; OKLCH L 41.5% C 0.108 H 135.5°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#2F5813
RGBrgb(47, 88, 19)
HSLhsl(96, 64%, 21%)
HSVhsv(96, 78%, 35%)
CMYKcmyk(46.6%, 0%, 78.4%, 65.5%)
CIE-LABlab(33.20, -27.52, 33.53)
CIE-LCHlch(33.20, 43.38, 129.38°)
OKLaboklab(41.49% -0.0767 0.0755)
OKLCHoklch(41.49% 0.108 135.5)
XYZxyz(4.7794, 7.6305, 1.8370)
Luminance0.0763 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5813 #3C1358
analogous
#515813 #2F5813 #135819
triadic
#2F5813 #132F58 #58132F
tetradic
#2F5813 #135158 #3C1358 #581913
square
#2F5813 #135158 #3C1358 #581913
split-complementary
#2F5813 #191358 #581351
monochromatic
#0D1905 #142608 #2F5813 #4A8A1E #65BD29

Accessibility & contrast

On white

8.31
#2F5813 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2F5813 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5813
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5813#FFFFFF#000000##FFFFFF
##2F58131.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5007
Deuteranopia (green-blind)
#564D1A
Tritanopia (blue-blind)
#2E544B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f5813;
/* rgb */ color: rgb(47, 88, 19);
/* oklch */ color: oklch(41.5% 0.108 135.5);
Tailwind
colors: {
  custom: {
    50: '#6c8756',
    500: '#2f5813',
    950: '#000000',
  },
}
SCSS
$custom: #2f5813;
$custom-light: #6c8756;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5813",
  "rgb": {
    "r": 47,
    "g": 88,
    "b": 19
  },
  "hsl": {
    "h": 95.652,
    "s": 64.486,
    "l": 20.98
  },
  "oklch": {
    "l": 0.41494,
    "c": 0.10767,
    "h": 135.5
  },
  "luminance": 0.07631
}

Semantic roles & 50–950 ramp

primary
#2F5813
secondary
#6C3790
accent
#40E7A4
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5813

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

Preview Lab → · Contrast checker → · Palette generator →

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