#2A4815#2A4815

#2A4815 is a dark, moderate yellow-green. Relative luminance 0.052; OKLCH L 36.6% C 0.085 H 134.6°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#2A4815
RGBrgb(42, 72, 21)
HSLhsl(95, 55%, 18%)
HSVhsv(95, 71%, 28%)
CMYKcmyk(41.7%, 0%, 70.8%, 71.8%)
CIE-LABlab(27.24, -21.53, 26.30)
CIE-LCHlch(27.24, 33.99, 129.31°)
OKLaboklab(36.55% -0.0599 0.0607)
OKLCHoklch(36.55% 0.085 134.6)
XYZxyz(3.4075, 5.1810, 1.5298)
Luminance0.0518 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4815 #331548
analogous
#434815 #2A4815 #154819
triadic
#2A4815 #152A48 #48152A
tetradic
#2A4815 #154348 #331548 #481915
square
#2A4815 #154348 #331548 #481915
split-complementary
#2A4815 #191548 #481543
monochromatic
#0E1807 #0E1907 #2A4815 #467723 #61A731

Accessibility & contrast

On white

10.31
#2A4815 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2A4815 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4815
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4815#FFFFFF#000000##FFFFFF
##2A48151.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B420F
Deuteranopia (green-blind)
#473F19
Tritanopia (blue-blind)
#2A453D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a4815;
/* rgb */ color: rgb(42, 72, 21);
/* oklch */ color: oklch(36.6% 0.085 134.6);
Tailwind
colors: {
  custom: {
    50: '#667b55',
    500: '#2a4815',
    950: '#000000',
  },
}
SCSS
$custom: #2a4815;
$custom-light: #667b55;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4815",
  "rgb": {
    "r": 42,
    "g": 72,
    "b": 21
  },
  "hsl": {
    "h": 95.294,
    "s": 54.839,
    "l": 18.235
  },
  "oklch": {
    "l": 0.36552,
    "c": 0.08529,
    "h": 134.6
  },
  "luminance": 0.05181
}

Semantic roles & 50–950 ramp

primary
#2A4815
secondary
#633980
accent
#4ADEA1
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2A4815

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

Preview Lab → · Contrast checker → · Palette generator →

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