#2A5114#2A5114

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

Color values

HEX#2A5114
RGBrgb(42, 81, 20)
HSLhsl(98, 60%, 20%)
HSVhsv(98, 75%, 32%)
CMYKcmyk(48.1%, 0%, 75.3%, 68.2%)
CIE-LABlab(30.47, -26.03, 30.22)
CIE-LCHlch(30.47, 39.89, 130.74°)
OKLaboklab(39.18% -0.0722 0.0688)
OKLCHoklch(39.18% 0.1 136.4)
XYZxyz(4.0234, 6.4274, 1.6903)
Luminance0.0643 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5114 #3B1451
analogous
#485114 #2A5114 #14511D
triadic
#2A5114 #142A51 #51142A
tetradic
#2A5114 #144851 #3B1451 #511D14
square
#2A5114 #144851 #3B1451 #511D14
split-complementary
#2A5114 #1D1451 #511448
monochromatic
#0D1906 #112008 #2A5114 #438220 #5DB32C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A5114#FFFFFF#000000##FFFFFF
##2A51141.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a5114;
/* rgb */ color: rgb(42, 81, 20);
/* oklch */ color: oklch(39.2% 0.100 136.4);
Tailwind
colors: {
  custom: {
    50: '#688255',
    500: '#2a5114',
    950: '#000000',
  },
}
SCSS
$custom: #2a5114;
$custom-light: #688255;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5114",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 20
  },
  "hsl": {
    "h": 98.361,
    "s": 60.396,
    "l": 19.804
  },
  "oklch": {
    "l": 0.39185,
    "c": 0.09977,
    "h": 136.4
  },
  "luminance": 0.06428
}

Semantic roles & 50–950 ramp

primary
#2A5114
secondary
#6C3889
accent
#44E4AA
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A5114

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

Preview Lab → · Contrast checker → · Palette generator →

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