#2A5116#2A5116

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

Color values

HEX#2A5116
RGBrgb(42, 81, 22)
HSLhsl(100, 57%, 20%)
HSVhsv(100, 73%, 32%)
CMYKcmyk(48.1%, 0%, 72.8%, 68.2%)
CIE-LABlab(30.48, -25.84, 29.31)
CIE-LCHlch(30.48, 39.07, 131.40°)
OKLaboklab(39.21% -0.0716 0.0672)
OKLCHoklch(39.21% 0.098 136.8)
XYZxyz(4.0420, 6.4348, 1.7880)
Luminance0.0644 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5116 #3D1651
analogous
#475116 #2A5116 #16511F
triadic
#2A5116 #162A51 #51162A
tetradic
#2A5116 #164751 #3D1651 #511F16
square
#2A5116 #164751 #3D1651 #511F16
split-complementary
#2A5116 #1F1651 #511647
monochromatic
#0C1807 #112109 #2A5116 #438123 #5CB130

Accessibility & contrast

On white

9.18
#2A5116 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2A5116 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5116
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5116#FFFFFF#000000##FFFFFF
##2A51161.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A0E
Deuteranopia (green-blind)
#4F471B
Tritanopia (blue-blind)
#284E45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a5116;
/* rgb */ color: rgb(42, 81, 22);
/* oklch */ color: oklch(39.2% 0.098 136.8);
Tailwind
colors: {
  custom: {
    50: '#678257',
    500: '#2a5116',
    950: '#000000',
  },
}
SCSS
$custom: #2a5116;
$custom-light: #678257;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5116",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 22
  },
  "hsl": {
    "h": 99.661,
    "s": 57.282,
    "l": 20.196
  },
  "oklch": {
    "l": 0.39205,
    "c": 0.09817,
    "h": 136.8
  },
  "luminance": 0.06435
}

Semantic roles & 50–950 ramp

primary
#2A5116
secondary
#6E3A88
accent
#47E1AD
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A5116

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

Preview Lab → · Contrast checker → · Palette generator →

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