#2A5214#2A5214

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

Color values

HEX#2A5214
RGBrgb(42, 82, 20)
HSLhsl(99, 61%, 20%)
HSVhsv(99, 76%, 32%)
CMYKcmyk(48.8%, 0%, 75.6%, 67.8%)
CIE-LABlab(30.82, -26.50, 30.60)
CIE-LCHlch(30.82, 40.47, 130.89°)
OKLaboklab(39.48% -0.0735 0.0696)
OKLCHoklch(39.48% 0.101 136.6)
XYZxyz(4.0983, 6.5771, 1.7152)
Luminance0.0658 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5214 #3C1452
analogous
#495214 #2A5214 #14521D
triadic
#2A5214 #142A52 #52142A
tetradic
#2A5214 #144952 #3C1452 #521D14
square
#2A5214 #144952 #3C1452 #521D14
split-complementary
#2A5214 #1D1452 #521449
monochromatic
#0D1906 #112108 #2A5214 #438320 #5CB42C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A5214#FFFFFF#000000##FFFFFF
##2A52141.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)
#554B0B
Deuteranopia (green-blind)
#50471A
Tritanopia (blue-blind)
#284F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a5214;
/* rgb */ color: rgb(42, 82, 20);
/* oklch */ color: oklch(39.5% 0.101 136.6);
Tailwind
colors: {
  custom: {
    50: '#688356',
    500: '#2a5214',
    950: '#000000',
  },
}
SCSS
$custom: #2a5214;
$custom-light: #688356;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5214",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 20
  },
  "hsl": {
    "h": 98.71,
    "s": 60.784,
    "l": 20
  },
  "oklch": {
    "l": 0.39478,
    "c": 0.10124,
    "h": 136.6
  },
  "luminance": 0.06577
}

Semantic roles & 50–950 ramp

primary
#2A5214
secondary
#6D388A
accent
#44E4AB
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A5214

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

Preview Lab → · Contrast checker → · Palette generator →

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