#2A5812#2A5812

#2A5812 is a dark, moderate yellow-green. Relative luminance 0.075; OKLCH L 41.2% C 0.111 H 137.2°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#2A5812
RGBrgb(42, 88, 18)
HSLhsl(99, 66%, 21%)
HSVhsv(99, 80%, 35%)
CMYKcmyk(52.3%, 0%, 79.5%, 65.5%)
CIE-LABlab(32.95, -29.40, 33.61)
CIE-LCHlch(32.95, 44.66, 131.18°)
OKLaboklab(41.22% -0.0815 0.0756)
OKLCHoklch(41.22% 0.111 137.2)
XYZxyz(4.5536, 7.5150, 1.7828)
Luminance0.0751 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5812 #401258
analogous
#4D5812 #2A5812 #12581D
triadic
#2A5812 #122A58 #58122A
tetradic
#2A5812 #124D58 #401258 #581D12
square
#2A5812 #124D58 #401258 #581D12
split-complementary
#2A5812 #1D1258 #58124D
monochromatic
#0C1905 #122508 #2A5812 #428B1C #5ABE27

Accessibility & contrast

On white

8.39
#2A5812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2A5812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5812
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5812#FFFFFF#000000##FFFFFF
##2A58121.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5005
Deuteranopia (green-blind)
#554C19
Tritanopia (blue-blind)
#27554B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a5812;
/* rgb */ color: rgb(42, 88, 18);
/* oklch */ color: oklch(41.2% 0.111 137.2);
Tailwind
colors: {
  custom: {
    50: '#698755',
    500: '#2a5812',
    950: '#000000',
  },
}
SCSS
$custom: #2a5812;
$custom-light: #698755;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5812",
  "rgb": {
    "r": 42,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 99.429,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.41221,
    "c": 0.11118,
    "h": 137.2
  },
  "luminance": 0.07515
}

Semantic roles & 50–950 ramp

primary
#2A5812
secondary
#713591
accent
#3FE9AF
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2A5812

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

Preview Lab → · Contrast checker → · Palette generator →

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