#2A5014#2A5014

#2A5014 is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 38.9% C 0.098 H 136.2°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#2A5014
RGBrgb(42, 80, 20)
HSLhsl(98, 60%, 20%)
HSVhsv(98, 75%, 31%)
CMYKcmyk(47.5%, 0%, 75%, 68.6%)
CIE-LABlab(30.11, -25.55, 29.85)
CIE-LCHlch(30.11, 39.29, 130.57°)
OKLaboklab(38.89% -0.071 0.068)
OKLCHoklch(38.89% 0.098 136.2)
XYZxyz(3.9497, 6.2798, 1.6657)
Luminance0.0628 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5014 #3A1450
analogous
#485014 #2A5014 #14501C
triadic
#2A5014 #142A50 #50142A
tetradic
#2A5014 #144850 #3A1450 #501C14
square
#2A5014 #144850 #3A1450 #501C14
split-complementary
#2A5014 #1C1450 #501448
monochromatic
#0D1806 #101F08 #2A5014 #448120 #5DB22C

Accessibility & contrast

On white

9.31
#2A5014 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2A5014 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5014
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5014#FFFFFF#000000##FFFFFF
##2A50141.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#53490B
Deuteranopia (green-blind)
#4E4619
Tritanopia (blue-blind)
#284D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a5014;
/* rgb */ color: rgb(42, 80, 20);
/* oklch */ color: oklch(38.9% 0.098 136.2);
Tailwind
colors: {
  custom: {
    50: '#678155',
    500: '#2a5014',
    950: '#000000',
  },
}
SCSS
$custom: #2a5014;
$custom-light: #678155;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5014",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 20
  },
  "hsl": {
    "h": 98,
    "s": 60,
    "l": 19.608
  },
  "oklch": {
    "l": 0.38891,
    "c": 0.0983,
    "h": 136.2
  },
  "luminance": 0.0628
}

Semantic roles & 50–950 ramp

primary
#2A5014
secondary
#6B3888
accent
#45E3A9
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A5014

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

Preview Lab → · Contrast checker → · Palette generator →

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