#2A4F17#2A4F17

#2A4F17 is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.6% C 0.094 H 136.7°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#2A4F17
RGBrgb(42, 79, 23)
HSLhsl(100, 55%, 20%)
HSVhsv(100, 71%, 31%)
CMYKcmyk(46.8%, 0%, 70.9%, 69%)
CIE-LABlab(29.78, -24.78, 28.06)
CIE-LCHlch(29.78, 37.44, 131.44°)
OKLaboklab(38.63% -0.0686 0.0647)
OKLCHoklch(38.63% 0.094 136.7)
XYZxyz(3.9054, 6.1458, 1.7909)
Luminance0.0615 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F17 #3C174F
analogous
#464F17 #2A4F17 #174F20
triadic
#2A4F17 #172A4F #4F172A
tetradic
#2A4F17 #17464F #3C174F #4F2017
square
#2A4F17 #17464F #3C174F #4F2017
split-complementary
#2A4F17 #20174F #4F1746
monochromatic
#0D1807 #112009 #2A4F17 #437E25 #5CAE33

Accessibility & contrast

On white

9.42
#2A4F17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2A4F17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4F17
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F17#FFFFFF#000000##FFFFFF
##2A4F171.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524810
Deuteranopia (green-blind)
#4D451C
Tritanopia (blue-blind)
#284C43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a4f17;
/* rgb */ color: rgb(42, 79, 23);
/* oklch */ color: oklch(38.6% 0.094 136.7);
Tailwind
colors: {
  custom: {
    50: '#678057',
    500: '#2a4f17',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f17;
$custom-light: #678057;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f17",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 23
  },
  "hsl": {
    "h": 99.643,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.38629,
    "c": 0.09431,
    "h": 136.7
  },
  "luminance": 0.06146
}

Semantic roles & 50–950 ramp

primary
#2A4F17
secondary
#6D3C86
accent
#4ADEAC
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A4F17

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

Preview Lab → · Contrast checker → · Palette generator →

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