#2A5215#2A5215

#2A5215 is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.5% C 0.100 H 136.8°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#2A5215
RGBrgb(42, 82, 21)
HSLhsl(99, 59%, 20%)
HSVhsv(99, 74%, 32%)
CMYKcmyk(48.8%, 0%, 74.4%, 67.8%)
CIE-LABlab(30.83, -26.40, 30.15)
CIE-LCHlch(30.83, 40.08, 131.21°)
OKLaboklab(39.49% -0.0732 0.0688)
OKLCHoklch(39.49% 0.1 136.8)
XYZxyz(4.1074, 6.5807, 1.7631)
Luminance0.0658 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5215 #3D1552
analogous
#485215 #2A5215 #15521E
triadic
#2A5215 #152A52 #52152A
tetradic
#2A5215 #154852 #3D1552 #521E15
square
#2A5215 #154852 #3D1552 #521E15
split-complementary
#2A5215 #1E1552 #521548
monochromatic
#0C1806 #112109 #2A5215 #438321 #5CB32E

Accessibility & contrast

On white

9.07
#2A5215 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2A5215 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5215
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5215#FFFFFF#000000##FFFFFF
##2A52151.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B0C
Deuteranopia (green-blind)
#50471A
Tritanopia (blue-blind)
#284F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a5215;
/* rgb */ color: rgb(42, 82, 21);
/* oklch */ color: oklch(39.5% 0.100 136.8);
Tailwind
colors: {
  custom: {
    50: '#688356',
    500: '#2a5215',
    950: '#000000',
  },
}
SCSS
$custom: #2a5215;
$custom-light: #688356;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5215",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 21
  },
  "hsl": {
    "h": 99.344,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.39488,
    "c": 0.10046,
    "h": 136.8
  },
  "luminance": 0.06581
}

Semantic roles & 50–950 ramp

primary
#2A5215
secondary
#6E398A
accent
#45E2AC
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A5215

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

Preview Lab → · Contrast checker → · Palette generator →

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