#2F5811#2F5811

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

Color values

HEX#2F5811
RGBrgb(47, 88, 17)
HSLhsl(95, 68%, 21%)
HSVhsv(95, 81%, 35%)
CMYKcmyk(46.6%, 0%, 80.7%, 65.5%)
CIE-LABlab(33.19, -27.67, 34.33)
CIE-LCHlch(33.19, 44.09, 128.88°)
OKLaboklab(41.48% -0.0773 0.0768)
OKLCHoklch(41.48% 0.109 135.2)
XYZxyz(4.7631, 7.6240, 1.7508)
Luminance0.0762 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5811 #3A1158
analogous
#525811 #2F5811 #115816
triadic
#2F5811 #112F58 #58112F
tetradic
#2F5811 #115258 #3A1158 #581611
square
#2F5811 #115258 #3A1158 #581611
split-complementary
#2F5811 #161158 #581152
monochromatic
#0E1A05 #142507 #2F5811 #4A8B1B #66BF25

Accessibility & contrast

On white

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

On black

2.52
#2F5811 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2F5811#FFFFFF#000000##FFFFFF
##2F58111.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5004
Deuteranopia (green-blind)
#564D18
Tritanopia (blue-blind)
#2E544A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f5811;
/* rgb */ color: rgb(47, 88, 17);
/* oklch */ color: oklch(41.5% 0.109 135.2);
Tailwind
colors: {
  custom: {
    50: '#6c8755',
    500: '#2f5811',
    950: '#000000',
  },
}
SCSS
$custom: #2f5811;
$custom-light: #6c8755;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5811",
  "rgb": {
    "r": 47,
    "g": 88,
    "b": 17
  },
  "hsl": {
    "h": 94.648,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.41478,
    "c": 0.10899,
    "h": 135.2
  },
  "luminance": 0.07624
}

Semantic roles & 50–950 ramp

primary
#2F5811
secondary
#6A3491
accent
#3DEAA1
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5811

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

Preview Lab → · Contrast checker → · Palette generator →

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