#2A5213#2A5213

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

Color values

HEX#2A5213
RGBrgb(42, 82, 19)
HSLhsl(98, 62%, 20%)
HSVhsv(98, 77%, 32%)
CMYKcmyk(48.8%, 0%, 76.8%, 67.8%)
CIE-LABlab(30.82, -26.59, 31.03)
CIE-LCHlch(30.82, 40.86, 130.59°)
OKLaboklab(39.47% -0.0738 0.0704)
OKLCHoklch(39.47% 0.102 136.4)
XYZxyz(4.0896, 6.5736, 1.6693)
Luminance0.0657 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5213 #3B1352
analogous
#4A5213 #2A5213 #13521B
triadic
#2A5213 #132A52 #52132A
tetradic
#2A5213 #134A52 #3B1352 #521B13
square
#2A5213 #134A52 #3B1352 #521B13
split-complementary
#2A5213 #1B1352 #52134A
monochromatic
#0D1906 #112007 #2A5213 #43841F #5DB52A

Accessibility & contrast

On white

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

On black

2.31
#2A5213 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2A5213#FFFFFF#000000##FFFFFF
##2A52131.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B09
Deuteranopia (green-blind)
#504719
Tritanopia (blue-blind)
#284F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a5213;
/* rgb */ color: rgb(42, 82, 19);
/* oklch */ color: oklch(39.5% 0.102 136.4);
Tailwind
colors: {
  custom: {
    50: '#688355',
    500: '#2a5213',
    950: '#000000',
  },
}
SCSS
$custom: #2a5213;
$custom-light: #688355;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5213",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 19
  },
  "hsl": {
    "h": 98.095,
    "s": 62.376,
    "l": 19.804
  },
  "oklch": {
    "l": 0.39469,
    "c": 0.10199,
    "h": 136.4
  },
  "luminance": 0.06574
}

Semantic roles & 50–950 ramp

primary
#2A5213
secondary
#6C368A
accent
#42E5AA
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A5213

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

Preview Lab → · Contrast checker → · Palette generator →

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