#2A5111#2A5111

#2A5111 is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.2% C 0.102 H 135.9°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#2A5111
RGBrgb(42, 81, 17)
HSLhsl(97, 65%, 19%)
HSVhsv(97, 79%, 32%)
CMYKcmyk(48.1%, 0%, 79%, 68.2%)
CIE-LABlab(30.44, -26.29, 31.52)
CIE-LCHlch(30.44, 41.04, 129.83°)
OKLaboklab(39.16% -0.0732 0.071)
OKLCHoklch(39.16% 0.102 135.9)
XYZxyz(3.9984, 6.4173, 1.5582)
Luminance0.0642 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5111 #381151
analogous
#4A5111 #2A5111 #115118
triadic
#2A5111 #112A51 #51112A
tetradic
#2A5111 #114A51 #381151 #511811
square
#2A5111 #114A51 #381151 #511811
split-complementary
#2A5111 #181151 #51114A
monochromatic
#0D1905 #101E06 #2A5111 #44841C #5EB626

Accessibility & contrast

On white

9.20
#2A5111 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2A5111 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5111
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5111#FFFFFF#000000##FFFFFF
##2A51111.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A06
Deuteranopia (green-blind)
#4F4617
Tritanopia (blue-blind)
#294E45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a5111;
/* rgb */ color: rgb(42, 81, 17);
/* oklch */ color: oklch(39.2% 0.102 135.9);
Tailwind
colors: {
  custom: {
    50: '#688254',
    500: '#2a5111',
    950: '#000000',
  },
}
SCSS
$custom: #2a5111;
$custom-light: #688254;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5111",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 17
  },
  "hsl": {
    "h": 96.563,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.39157,
    "c": 0.102,
    "h": 135.9
  },
  "luminance": 0.06418
}

Semantic roles & 50–950 ramp

primary
#2A5111
secondary
#68348A
accent
#40E8A6
background
#F6F8F4
surface
#EBEFE8
border
#C6CAC4
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A5111

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

Preview Lab → · Contrast checker → · Palette generator →

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