#2A5B11#2A5B11

#2A5B11 is a dark, moderate yellow-green. Relative luminance 0.080; OKLCH L 42.1% C 0.116 H 137.4°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#2A5B11
RGBrgb(42, 91, 17)
HSLhsl(100, 69%, 21%)
HSVhsv(100, 81%, 36%)
CMYKcmyk(53.8%, 0%, 81.3%, 64.3%)
CIE-LABlab(34.01, -30.80, 35.05)
CIE-LCHlch(34.01, 46.66, 131.30°)
OKLaboklab(42.09% -0.0854 0.0784)
OKLCHoklch(42.09% 0.116 137.4)
XYZxyz(4.7970, 8.0145, 1.8244)
Luminance0.0801 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5B11 #42115B
analogous
#4F5B11 #2A5B11 #115B1D
triadic
#2A5B11 #112A5B #5B112A
tetradic
#2A5B11 #114F5B #42115B #5B1D11
square
#2A5B11 #114F5B #42115B #5B1D11
split-complementary
#2A5B11 #1D115B #5B114F
monochromatic
#0C1A05 #122707 #2A5B11 #428F1B #5AC224

Accessibility & contrast

On white

8.07
#2A5B11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2A5B11 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5B11
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5B11#FFFFFF#000000##FFFFFF
##2A5B111.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5303
Deuteranopia (green-blind)
#584E19
Tritanopia (blue-blind)
#27574D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2a5b11;
/* rgb */ color: rgb(42, 91, 17);
/* oklch */ color: oklch(42.1% 0.116 137.4);
Tailwind
colors: {
  custom: {
    50: '#698a55',
    500: '#2a5b11',
    950: '#000000',
  },
}
SCSS
$custom: #2a5b11;
$custom-light: #698a55;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5b11",
  "rgb": {
    "r": 42,
    "g": 91,
    "b": 17
  },
  "hsl": {
    "h": 99.73,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.42091,
    "c": 0.11593,
    "h": 137.4
  },
  "luminance": 0.08015
}

Semantic roles & 50–950 ramp

primary
#2A5B11
secondary
#733494
accent
#3CEBB0
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2A5B11

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

Preview Lab → · Contrast checker → · Palette generator →

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