#2A5011#2A5011

#2A5011 is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 38.9% C 0.101 H 135.7°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#2A5011
RGBrgb(42, 80, 17)
HSLhsl(96, 65%, 19%)
HSVhsv(96, 79%, 31%)
CMYKcmyk(47.5%, 0%, 78.8%, 68.6%)
CIE-LABlab(30.08, -25.82, 31.15)
CIE-LCHlch(30.08, 40.46, 129.65°)
OKLaboklab(38.86% -0.0719 0.0703)
OKLCHoklch(38.86% 0.101 135.7)
XYZxyz(3.9246, 6.2698, 1.5336)
Luminance0.0627 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5011 #371150
analogous
#4A5011 #2A5011 #115018
triadic
#2A5011 #112A50 #50112A
tetradic
#2A5011 #114A50 #371150 #501811
square
#2A5011 #114A50 #371150 #501811
split-complementary
#2A5011 #181150 #50114A
monochromatic
#0D1905 #101E06 #2A5011 #45821C #5FB526

Accessibility & contrast

On white

9.32
#2A5011 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2A5011 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5011
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5011#FFFFFF#000000##FFFFFF
##2A50111.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534906
Deuteranopia (green-blind)
#4E4617
Tritanopia (blue-blind)
#294D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a5011;
/* rgb */ color: rgb(42, 80, 17);
/* oklch */ color: oklch(38.9% 0.101 135.7);
Tailwind
colors: {
  custom: {
    50: '#688154',
    500: '#2a5011',
    950: '#000000',
  },
}
SCSS
$custom: #2a5011;
$custom-light: #688154;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5011",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 17
  },
  "hsl": {
    "h": 96.19,
    "s": 64.948,
    "l": 19.02
  },
  "oklch": {
    "l": 0.38863,
    "c": 0.10057,
    "h": 135.7
  },
  "luminance": 0.0627
}

Semantic roles & 50–950 ramp

primary
#2A5011
secondary
#673389
accent
#40E8A5
background
#F6F7F4
surface
#EBEEE8
border
#C6C9C4
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A5011

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

Preview Lab → · Contrast checker → · Palette generator →

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