#2F5010#2F5010

#2F5010 is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.2% C 0.098 H 133.2°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#2F5010
RGBrgb(47, 80, 16)
HSLhsl(91, 67%, 19%)
HSVhsv(91, 80%, 31%)
CMYKcmyk(41.3%, 0%, 80%, 68.6%)
CIE-LABlab(30.35, -23.94, 31.93)
CIE-LCHlch(30.35, 39.91, 126.86°)
OKLaboklab(39.15% -0.0673 0.0717)
OKLCHoklch(39.15% 0.098 133.2)
XYZxyz(4.1344, 6.3789, 1.5035)
Luminance0.0638 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5010 #311050
analogous
#4F5010 #2F5010 #105011
triadic
#2F5010 #102F50 #50102F
tetradic
#2F5010 #104F50 #311050 #501110
square
#2F5010 #104F50 #311050 #501110
split-complementary
#2F5010 #111050 #50104F
monochromatic
#0F1A05 #111D06 #2F5010 #4D831A #6BB624

Accessibility & contrast

On white

9.23
#2F5010 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2F5010 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5010
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5010#FFFFFF#000000##FFFFFF
##2F50101.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544905
Deuteranopia (green-blind)
#4F4716
Tritanopia (blue-blind)
#2F4C44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f5010;
/* rgb */ color: rgb(47, 80, 16);
/* oklch */ color: oklch(39.2% 0.098 133.2);
Tailwind
colors: {
  custom: {
    50: '#6b8153',
    500: '#2f5010',
    950: '#000000',
  },
}
SCSS
$custom: #2f5010;
$custom-light: #6b8153;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5010",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 16
  },
  "hsl": {
    "h": 90.938,
    "s": 66.667,
    "l": 18.824
  },
  "oklch": {
    "l": 0.39152,
    "c": 0.09829,
    "h": 133.2
  },
  "luminance": 0.06379
}

Semantic roles & 50–950 ramp

primary
#2F5010
secondary
#5F328A
accent
#3EEA97
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F5010

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

Preview Lab → · Contrast checker → · Palette generator →

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