#2A4215#2A4215

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

Color values

HEX#2A4215
RGBrgb(42, 66, 21)
HSLhsl(92, 52%, 17%)
HSVhsv(92, 68%, 26%)
CMYKcmyk(36.4%, 0%, 68.2%, 74.1%)
CIE-LABlab(25.08, -18.40, 23.90)
CIE-LCHlch(25.08, 30.17, 127.59°)
OKLaboklab(34.79% -0.0514 0.0556)
OKLCHoklch(34.79% 0.076 132.7)
XYZxyz(3.0384, 4.4427, 1.4068)
Luminance0.0444 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4215 #2D1542
analogous
#414215 #2A4215 #154217
triadic
#2A4215 #152A42 #42152A
tetradic
#2A4215 #154142 #2D1542 #421715
square
#2A4215 #154142 #2D1542 #421715
split-complementary
#2A4215 #171542 #421541
monochromatic
#0F1707 #0F1707 #2A4215 #487024 #659F33

Accessibility & contrast

On white

11.12
#2A4215 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4215
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4215#FFFFFF#000000##FFFFFF
##2A42151.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453D10
Deuteranopia (green-blind)
#423B18
Tritanopia (blue-blind)
#2A3F38
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a4215;
/* rgb */ color: rgb(42, 66, 21);
/* oklch */ color: oklch(34.8% 0.076 132.7);
Tailwind
colors: {
  custom: {
    50: '#657654',
    500: '#2a4215',
    950: '#000000',
  },
}
SCSS
$custom: #2a4215;
$custom-light: #657654;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4215",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 21
  },
  "hsl": {
    "h": 92,
    "s": 51.724,
    "l": 17.059
  },
  "oklch": {
    "l": 0.34791,
    "c": 0.0757,
    "h": 132.7
  },
  "luminance": 0.04443
}

Semantic roles & 50–950 ramp

primary
#2A4215
secondary
#5C397A
accent
#4DDB99
background
#F6F7F4
surface
#EBEDE8
border
#C6C8C4
text
#060803
muted
#7A7B78

Preview Lab

Preview with #2A4215

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

Preview Lab → · Contrast checker → · Palette generator →

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