#2A5514#2A5514

#2A5514 is a dark, moderate yellow-green. Relative luminance 0.070; OKLCH L 40.4% C 0.106 H 137.1°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#2A5514
RGBrgb(42, 85, 20)
HSLhsl(100, 62%, 21%)
HSVhsv(100, 76%, 33%)
CMYKcmyk(50.6%, 0%, 76.5%, 66.7%)
CIE-LABlab(31.90, -27.88, 31.70)
CIE-LCHlch(31.90, 42.22, 131.33°)
OKLaboklab(40.36% -0.0773 0.0719)
OKLCHoklch(40.36% 0.106 137.1)
XYZxyz(4.3295, 7.0395, 1.7923)
Luminance0.0704 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5514 #3F1455
analogous
#4A5514 #2A5514 #14551E
triadic
#2A5514 #142A55 #55142A
tetradic
#2A5514 #144A55 #3F1455 #551E14
square
#2A5514 #144A55 #3F1455 #551E14
split-complementary
#2A5514 #1E1455 #55144A
monochromatic
#0C1906 #122308 #2A5514 #428720 #5BB82B

Accessibility & contrast

On white

8.72
#2A5514 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2A5514 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5514
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5514#FFFFFF#000000##FFFFFF
##2A55141.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D0A
Deuteranopia (green-blind)
#524A1A
Tritanopia (blue-blind)
#285248
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2a5514;
/* rgb */ color: rgb(42, 85, 20);
/* oklch */ color: oklch(40.4% 0.106 137.1);
Tailwind
colors: {
  custom: {
    50: '#688556',
    500: '#2a5514',
    950: '#000000',
  },
}
SCSS
$custom: #2a5514;
$custom-light: #688556;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5514",
  "rgb": {
    "r": 42,
    "g": 85,
    "b": 20
  },
  "hsl": {
    "h": 99.692,
    "s": 61.905,
    "l": 20.588
  },
  "oklch": {
    "l": 0.40358,
    "c": 0.10556,
    "h": 137.1
  },
  "luminance": 0.0704
}

Semantic roles & 50–950 ramp

primary
#2A5514
secondary
#70388D
accent
#43E5AE
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #2A5514

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

Preview Lab → · Contrast checker → · Palette generator →

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