#2F5A10#2F5A10

#2F5A10 is a dark, moderate yellow-green. Relative luminance 0.080; OKLCH L 42.0% C 0.112 H 135.4°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#2F5A10
RGBrgb(47, 90, 16)
HSLhsl(95, 70%, 21%)
HSVhsv(95, 82%, 35%)
CMYKcmyk(47.8%, 0%, 82.2%, 64.7%)
CIE-LABlab(33.89, -28.66, 35.39)
CIE-LCHlch(33.89, 45.54, 129.01°)
OKLaboklab(42.05% -0.08 0.0789)
OKLCHoklch(42.05% 0.112 135.4)
XYZxyz(4.9219, 7.9538, 1.7660)
Luminance0.0795 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5A10 #3B105A
analogous
#545A10 #2F5A10 #105A16
triadic
#2F5A10 #102F5A #5A102F
tetradic
#2F5A10 #10545A #3B105A #5A1610
square
#2F5A10 #10545A #3B105A #5A1610
split-complementary
#2F5A10 #16105A #5A1054
monochromatic
#0E1A05 #142607 #2F5A10 #4A8E19 #65C222

Accessibility & contrast

On white

8.11
#2F5A10 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2F5A10 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5A10
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5A10#FFFFFF#000000##FFFFFF
##2F5A101.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5201
Deuteranopia (green-blind)
#584E18
Tritanopia (blue-blind)
#2E564C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f5a10;
/* rgb */ color: rgb(47, 90, 16);
/* oklch */ color: oklch(42.0% 0.112 135.4);
Tailwind
colors: {
  custom: {
    50: '#6c8955',
    500: '#2f5a10',
    950: '#000000',
  },
}
SCSS
$custom: #2f5a10;
$custom-light: #6c8955;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5a10",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 16
  },
  "hsl": {
    "h": 94.865,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.4205,
    "c": 0.11238,
    "h": 135.4
  },
  "luminance": 0.07954
}

Semantic roles & 50–950 ramp

primary
#2F5A10
secondary
#6B3393
accent
#3BEDA2
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5A10

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

Preview Lab → · Contrast checker → · Palette generator →

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