#2A4E17#2A4E17

#2A4E17 is a dark, moderate yellow-green. Relative luminance 0.060; OKLCH L 38.3% C 0.093 H 136.5°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#2A4E17
RGBrgb(42, 78, 23)
HSLhsl(99, 54%, 20%)
HSVhsv(99, 71%, 31%)
CMYKcmyk(46.2%, 0%, 70.5%, 69.4%)
CIE-LABlab(29.42, -24.30, 27.67)
CIE-LCHlch(29.42, 36.83, 131.28°)
OKLaboklab(38.34% -0.0673 0.0639)
OKLCHoklch(38.34% 0.093 136.5)
XYZxyz(3.8338, 6.0027, 1.7671)
Luminance0.0600 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E17 #3B174E
analogous
#454E17 #2A4E17 #174E20
triadic
#2A4E17 #172A4E #4E172A
tetradic
#2A4E17 #17454E #3B174E #4E2017
square
#2A4E17 #17454E #3B174E #4E2017
split-complementary
#2A4E17 #20174E #4E1745
monochromatic
#0D1807 #111F09 #2A4E17 #437D25 #5DAD33

Accessibility & contrast

On white

9.54
#2A4E17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2A4E17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E17
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E17#FFFFFF#000000##FFFFFF
##2A4E171.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514710
Deuteranopia (green-blind)
#4C441C
Tritanopia (blue-blind)
#284B43
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a4e17;
/* rgb */ color: rgb(42, 78, 23);
/* oklch */ color: oklch(38.3% 0.093 136.5);
Tailwind
colors: {
  custom: {
    50: '#678057',
    500: '#2a4e17',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e17;
$custom-light: #678057;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e17",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 23
  },
  "hsl": {
    "h": 99.273,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.38336,
    "c": 0.09279,
    "h": 136.5
  },
  "luminance": 0.06003
}

Semantic roles & 50–950 ramp

primary
#2A4E17
secondary
#6C3C85
accent
#4ADEAB
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A4E17

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

Preview Lab → · Contrast checker → · Palette generator →

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