#2F5A19#2F5A19

#2F5A19 is a dark, moderate yellow-green. Relative luminance 0.080; OKLCH L 42.1% C 0.106 H 136.8°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#2F5A19
RGBrgb(47, 90, 25)
HSLhsl(100, 57%, 23%)
HSVhsv(100, 72%, 35%)
CMYKcmyk(47.8%, 0%, 72.2%, 64.7%)
CIE-LABlab(33.95, -27.93, 31.68)
CIE-LCHlch(33.95, 42.23, 131.40°)
OKLaboklab(42.13% -0.0774 0.0725)
OKLCHoklch(42.13% 0.106 136.8)
XYZxyz(5.0038, 7.9865, 2.1974)
Luminance0.0799 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5A19 #44195A
analogous
#505A19 #2F5A19 #195A23
triadic
#2F5A19 #192F5A #5A192F
tetradic
#2F5A19 #19505A #44195A #5A2319
square
#2F5A19 #19505A #44195A #5A2319
split-complementary
#2F5A19 #23195A #5A1950
monochromatic
#0D1807 #162A0C #2F5A19 #488A26 #61BA34

Accessibility & contrast

On white

8.09
#2F5A19 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2F5A19 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5A19
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5A19#FFFFFF#000000##FFFFFF
##2F5A191.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5210
Deuteranopia (green-blind)
#574E1F
Tritanopia (blue-blind)
#2D574D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f5a19;
/* rgb */ color: rgb(47, 90, 25);
/* oklch */ color: oklch(42.1% 0.106 136.8);
Tailwind
colors: {
  custom: {
    50: '#6c8959',
    500: '#2f5a19',
    950: '#000000',
  },
}
SCSS
$custom: #2f5a19;
$custom-light: #6c8959;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5a19",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 25
  },
  "hsl": {
    "h": 99.692,
    "s": 56.522,
    "l": 22.549
  },
  "oklch": {
    "l": 0.42128,
    "c": 0.10605,
    "h": 136.8
  },
  "luminance": 0.07987
}

Semantic roles & 50–950 ramp

primary
#2F5A19
secondary
#753E90
accent
#48E0AC
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #2F5A19

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

Preview Lab → · Contrast checker → · Palette generator →

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