#2A5412#2A5412

#2A5412 is a dark, moderate yellow-green. Relative luminance 0.069; OKLCH L 40.0% C 0.106 H 136.6°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#2A5412
RGBrgb(42, 84, 18)
HSLhsl(98, 65%, 20%)
HSVhsv(98, 79%, 33%)
CMYKcmyk(50%, 0%, 78.6%, 67.1%)
CIE-LABlab(31.52, -27.60, 32.18)
CIE-LCHlch(31.52, 42.39, 130.61°)
OKLaboklab(40.05% -0.0767 0.0726)
OKLCHoklch(40.05% 0.106 136.6)
XYZxyz(4.2342, 6.8763, 1.6763)
Luminance0.0688 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5412 #3C1254
analogous
#4B5412 #2A5412 #12541B
triadic
#2A5412 #122A54 #54122A
tetradic
#2A5412 #124B54 #3C1254 #541B12
square
#2A5412 #124B54 #3C1254 #541B12
split-complementary
#2A5412 #1B1254 #54124B
monochromatic
#0D1905 #112207 #2A5412 #43861D #5CB928

Accessibility & contrast

On white

8.84
#2A5412 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2A5412 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5412
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5412#FFFFFF#000000##FFFFFF
##2A54121.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C07
Deuteranopia (green-blind)
#524918
Tritanopia (blue-blind)
#285147
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a5412;
/* rgb */ color: rgb(42, 84, 18);
/* oklch */ color: oklch(40.0% 0.106 136.6);
Tailwind
colors: {
  custom: {
    50: '#688455',
    500: '#2a5412',
    950: '#000000',
  },
}
SCSS
$custom: #2a5412;
$custom-light: #688455;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5412",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 18
  },
  "hsl": {
    "h": 98.182,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.40047,
    "c": 0.10558,
    "h": 136.6
  },
  "luminance": 0.06877
}

Semantic roles & 50–950 ramp

primary
#2A5412
secondary
#6D358D
accent
#40E8AB
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #2A5412

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

Preview Lab → · Contrast checker → · Palette generator →

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