#2A5110#2A5110

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

Color values

HEX#2A5110
RGBrgb(42, 81, 16)
HSLhsl(96, 67%, 19%)
HSVhsv(96, 80%, 32%)
CMYKcmyk(48.1%, 0%, 80.2%, 68.2%)
CIE-LABlab(30.43, -26.37, 31.92)
CIE-LCHlch(30.43, 41.40, 129.55°)
OKLaboklab(39.15% -0.0735 0.0717)
OKLCHoklch(39.15% 0.103 135.7)
XYZxyz(3.9907, 6.4143, 1.5179)
Luminance0.0641 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5110 #371051
analogous
#4B5110 #2A5110 #105117
triadic
#2A5110 #102A51 #51102A
tetradic
#2A5110 #104B51 #371051 #511710
square
#2A5110 #104B51 #371051 #511710
split-complementary
#2A5110 #171051 #51104B
monochromatic
#0D1A05 #101E06 #2A5110 #44841A #5FB724

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A5110#FFFFFF#000000##FFFFFF
##2A51101.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)
#544A05
Deuteranopia (green-blind)
#4F4616
Tritanopia (blue-blind)
#294E44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a5110;
/* rgb */ color: rgb(42, 81, 16);
/* oklch */ color: oklch(39.1% 0.103 135.7);
Tailwind
colors: {
  custom: {
    50: '#688253',
    500: '#2a5110',
    950: '#000000',
  },
}
SCSS
$custom: #2a5110;
$custom-light: #688253;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5110",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 16
  },
  "hsl": {
    "h": 96,
    "s": 67.01,
    "l": 19.02
  },
  "oklch": {
    "l": 0.39149,
    "c": 0.1027,
    "h": 135.7
  },
  "luminance": 0.06415
}

Semantic roles & 50–950 ramp

primary
#2A5110
secondary
#67328B
accent
#3EEAA5
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A5110

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

Preview Lab → · Contrast checker → · Palette generator →

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