#2A5512#2A5512

#2A5512 is a dark, moderate yellow-green. Relative luminance 0.070; OKLCH L 40.3% C 0.107 H 136.7°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#2A5512
RGBrgb(42, 85, 18)
HSLhsl(99, 65%, 20%)
HSVhsv(99, 79%, 33%)
CMYKcmyk(50.6%, 0%, 78.8%, 66.7%)
CIE-LABlab(31.88, -28.05, 32.54)
CIE-LCHlch(31.88, 42.96, 130.76°)
OKLaboklab(40.34% -0.0779 0.0734)
OKLCHoklch(40.34% 0.107 136.7)
XYZxyz(4.3124, 7.0326, 1.7023)
Luminance0.0703 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5512 #3D1255
analogous
#4C5512 #2A5512 #12551B
triadic
#2A5512 #122A55 #55122A
tetradic
#2A5512 #124C55 #3D1255 #551B12
square
#2A5512 #124C55 #3D1255 #551B12
split-complementary
#2A5512 #1B1255 #55124C
monochromatic
#0C1905 #112207 #2A5512 #43881D #5CBA27

Accessibility & contrast

On white

8.73
#2A5512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2A5512 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5512
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5512#FFFFFF#000000##FFFFFF
##2A55121.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D06
Deuteranopia (green-blind)
#524A19
Tritanopia (blue-blind)
#285248
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2a5512;
/* rgb */ color: rgb(42, 85, 18);
/* oklch */ color: oklch(40.3% 0.107 136.7);
Tailwind
colors: {
  custom: {
    50: '#688555',
    500: '#2a5512',
    950: '#000000',
  },
}
SCSS
$custom: #2a5512;
$custom-light: #688555;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5512",
  "rgb": {
    "r": 42,
    "g": 85,
    "b": 18
  },
  "hsl": {
    "h": 98.507,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.40341,
    "c": 0.10699,
    "h": 136.7
  },
  "luminance": 0.07033
}

Semantic roles & 50–950 ramp

primary
#2A5512
secondary
#6E358E
accent
#40E8AC
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #2A5512

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

Preview Lab → · Contrast checker → · Palette generator →

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