#2A5A11#2A5A11

#2A5A11 is a dark, moderate yellow-green. Relative luminance 0.078; OKLCH L 41.8% C 0.115 H 137.3°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#2A5A11
RGBrgb(42, 90, 17)
HSLhsl(99, 68%, 21%)
HSVhsv(99, 81%, 35%)
CMYKcmyk(53.3%, 0%, 81.1%, 64.7%)
CIE-LABlab(33.66, -30.36, 34.70)
CIE-LCHlch(33.66, 46.11, 131.18°)
OKLaboklab(41.8% -0.0842 0.0777)
OKLCHoklch(41.8% 0.115 137.3)
XYZxyz(4.7120, 7.8447, 1.7961)
Luminance0.0785 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5A11 #41115A
analogous
#4E5A11 #2A5A11 #115A1C
triadic
#2A5A11 #112A5A #5A112A
tetradic
#2A5A11 #114E5A #41115A #5A1C11
square
#2A5A11 #114E5A #41115A #5A1C11
split-complementary
#2A5A11 #1C115A #5A114E
monochromatic
#0C1A05 #122707 #2A5A11 #428D1B #5AC124

Accessibility & contrast

On white

8.17
#2A5A11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2A5A11 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5A11
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5A11#FFFFFF#000000##FFFFFF
##2A5A111.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5203
Deuteranopia (green-blind)
#574E19
Tritanopia (blue-blind)
#27574C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a5a11;
/* rgb */ color: rgb(42, 90, 17);
/* oklch */ color: oklch(41.8% 0.115 137.3);
Tailwind
colors: {
  custom: {
    50: '#698955',
    500: '#2a5a11',
    950: '#000000',
  },
}
SCSS
$custom: #2a5a11;
$custom-light: #698955;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5a11",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 17
  },
  "hsl": {
    "h": 99.452,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.41799,
    "c": 0.11457,
    "h": 137.3
  },
  "luminance": 0.07845
}

Semantic roles & 50–950 ramp

primary
#2A5A11
secondary
#723493
accent
#3DEBAF
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2A5A11

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

Preview Lab → · Contrast checker → · Palette generator →

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