#2F5812#2F5812

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

Color values

HEX#2F5812
RGBrgb(47, 88, 18)
HSLhsl(95, 66%, 21%)
HSVhsv(95, 80%, 35%)
CMYKcmyk(46.6%, 0%, 79.5%, 65.5%)
CIE-LABlab(33.19, -27.60, 33.94)
CIE-LCHlch(33.19, 43.74, 129.12°)
OKLaboklab(41.49% -0.077 0.0762)
OKLCHoklch(41.49% 0.108 135.3)
XYZxyz(4.7711, 7.6272, 1.7929)
Luminance0.0763 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5812 #3B1258
analogous
#525812 #2F5812 #125818
triadic
#2F5812 #122F58 #58122F
tetradic
#2F5812 #125258 #3B1258 #581812
square
#2F5812 #125258 #3B1258 #581812
split-complementary
#2F5812 #181258 #581252
monochromatic
#0E1905 #142508 #2F5812 #4A8B1C #65BE27

Accessibility & contrast

On white

8.32
#2F5812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F5812
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5812#FFFFFF#000000##FFFFFF
##2F58121.008.322.538.32
#FFFFFF8.321.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f5812;
/* rgb */ color: rgb(47, 88, 18);
/* oklch */ color: oklch(41.5% 0.108 135.3);
Tailwind
colors: {
  custom: {
    50: '#6c8755',
    500: '#2f5812',
    950: '#000000',
  },
}
SCSS
$custom: #2f5812;
$custom-light: #6c8755;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5812",
  "rgb": {
    "r": 47,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 95.143,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.41486,
    "c": 0.10834,
    "h": 135.3
  },
  "luminance": 0.07627
}

Semantic roles & 50–950 ramp

primary
#2F5812
secondary
#6B3591
accent
#3FE9A2
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5812

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

Preview Lab → · Contrast checker → · Palette generator →

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