#2A5113#2A5113

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

Color values

HEX#2A5113
RGBrgb(42, 81, 19)
HSLhsl(98, 62%, 20%)
HSVhsv(98, 77%, 32%)
CMYKcmyk(48.1%, 0%, 76.5%, 68.2%)
CIE-LABlab(30.46, -26.12, 30.66)
CIE-LCHlch(30.46, 40.28, 130.42°)
OKLaboklab(39.17% -0.0726 0.0696)
OKLCHoklch(39.17% 0.101 136.2)
XYZxyz(4.0147, 6.4239, 1.6444)
Luminance0.0642 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5113 #3A1351
analogous
#495113 #2A5113 #13511B
triadic
#2A5113 #132A51 #51132A
tetradic
#2A5113 #134951 #3A1351 #511B13
square
#2A5113 #134951 #3A1351 #511B13
split-complementary
#2A5113 #1B1351 #511349
monochromatic
#0D1906 #101F07 #2A5113 #44831F #5DB42A

Accessibility & contrast

On white

9.19
#2A5113 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A5113
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5113#FFFFFF#000000##FFFFFF
##2A51131.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a5113;
/* rgb */ color: rgb(42, 81, 19);
/* oklch */ color: oklch(39.2% 0.101 136.2);
Tailwind
colors: {
  custom: {
    50: '#688255',
    500: '#2a5113',
    950: '#000000',
  },
}
SCSS
$custom: #2a5113;
$custom-light: #688255;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5113",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 19
  },
  "hsl": {
    "h": 97.742,
    "s": 62,
    "l": 19.608
  },
  "oklch": {
    "l": 0.39175,
    "c": 0.10054,
    "h": 136.2
  },
  "luminance": 0.06424
}

Semantic roles & 50–950 ramp

primary
#2A5113
secondary
#6B368A
accent
#43E5A9
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A5113

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

Preview Lab → · Contrast checker → · Palette generator →

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