#2A4216#2A4216

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

Color values

HEX#2A4216
RGBrgb(42, 66, 22)
HSLhsl(93, 50%, 17%)
HSVhsv(93, 67%, 26%)
CMYKcmyk(36.4%, 0%, 66.7%, 74.1%)
CIE-LABlab(25.10, -18.29, 23.38)
CIE-LCHlch(25.10, 29.68, 128.04°)
OKLaboklab(34.81% -0.051 0.0546)
OKLCHoklch(34.81% 0.075 133)
XYZxyz(3.0478, 4.4465, 1.4566)
Luminance0.0445 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4216 #2E1642
analogous
#404216 #2A4216 #164218
triadic
#2A4216 #162A42 #42162A
tetradic
#2A4216 #164042 #2E1642 #421816
square
#2A4216 #164042 #2E1642 #421816
split-complementary
#2A4216 #181642 #421640
monochromatic
#0F1708 #0F1708 #2A4216 #477025 #649E35

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A4216#FFFFFF#000000##FFFFFF
##2A42161.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)
#453D11
Deuteranopia (green-blind)
#413B19
Tritanopia (blue-blind)
#2A3F38
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a4216;
/* rgb */ color: rgb(42, 66, 22);
/* oklch */ color: oklch(34.8% 0.075 133.0);
Tailwind
colors: {
  custom: {
    50: '#657655',
    500: '#2a4216',
    950: '#000000',
  },
}
SCSS
$custom: #2a4216;
$custom-light: #657655;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4216",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 22
  },
  "hsl": {
    "h": 92.727,
    "s": 50,
    "l": 17.255
  },
  "oklch": {
    "l": 0.34805,
    "c": 0.07469,
    "h": 133
  },
  "luminance": 0.04447
}

Semantic roles & 50–950 ramp

primary
#2A4216
secondary
#5D3A79
accent
#4EDA9A
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060803
muted
#7A7B78

Preview Lab

Preview with #2A4216

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

Preview Lab → · Contrast checker → · Palette generator →

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