#2A4217#2A4217

#2A4217 is a dark, moderate yellow-green. Relative luminance 0.045; OKLCH L 34.8% C 0.074 H 133.3°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#2A4217
RGBrgb(42, 66, 23)
HSLhsl(93, 48%, 17%)
HSVhsv(93, 65%, 26%)
CMYKcmyk(36.4%, 0%, 65.2%, 74.1%)
CIE-LABlab(25.11, -18.17, 22.84)
CIE-LCHlch(25.11, 29.19, 128.50°)
OKLaboklab(34.82% -0.0505 0.0536)
OKLCHoklch(34.82% 0.074 133.3)
XYZxyz(3.0577, 4.4504, 1.5084)
Luminance0.0445 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4217 #2F1742
analogous
#404217 #2A4217 #174219
triadic
#2A4217 #172A42 #42172A
tetradic
#2A4217 #174042 #2F1742 #421917
square
#2A4217 #174042 #2F1742 #421917
split-complementary
#2A4217 #191742 #421740
monochromatic
#0E1708 #0E1708 #2A4217 #476F27 #649D37

Accessibility & contrast

On white

11.11
#2A4217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2A4217 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4217
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4217#FFFFFF#000000##FFFFFF
##2A42171.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453D13
Deuteranopia (green-blind)
#413B1A
Tritanopia (blue-blind)
#2A3F39
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a4217;
/* rgb */ color: rgb(42, 66, 23);
/* oklch */ color: oklch(34.8% 0.074 133.3);
Tailwind
colors: {
  custom: {
    50: '#657656',
    500: '#2a4217',
    950: '#000000',
  },
}
SCSS
$custom: #2a4217;
$custom-light: #657656;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4217",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 23
  },
  "hsl": {
    "h": 93.488,
    "s": 48.315,
    "l": 17.451
  },
  "oklch": {
    "l": 0.34818,
    "c": 0.07365,
    "h": 133.3
  },
  "luminance": 0.04451
}

Semantic roles & 50–950 ramp

primary
#2A4217
secondary
#5E3C79
accent
#50D89C
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060803
muted
#7A7B78

Preview Lab

Preview with #2A4217

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

Preview Lab → · Contrast checker → · Palette generator →

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