#2A570D#2A570D

#2A570D is a dark, moderate yellow-green. Relative luminance 0.073; OKLCH L 40.9% C 0.113 H 136.3°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#2A570D
RGBrgb(42, 87, 13)
HSLhsl(96, 74%, 20%)
HSVhsv(96, 85%, 34%)
CMYKcmyk(51.7%, 0%, 85.1%, 65.9%)
CIE-LABlab(32.56, -29.31, 35.12)
CIE-LCHlch(32.56, 45.74, 129.85°)
OKLaboklab(40.89% -0.0816 0.0779)
OKLCHoklch(40.89% 0.113 136.3)
XYZxyz(4.4356, 7.3374, 1.5632)
Luminance0.0734 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A570D #3A0D57
analogous
#4F570D #2A570D #0D5715
triadic
#2A570D #0D2A57 #570D2A
tetradic
#2A570D #0D4F57 #3A0D57 #57150D
square
#2A570D #0D4F57 #3A0D57 #57150D
split-complementary
#2A570D #150D57 #570D4F
monochromatic
#0D1B04 #102205 #2A570D #448C15 #5DC11D

Accessibility & contrast

On white

8.51
#2A570D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2A570D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A570D
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A570D#FFFFFF#000000##FFFFFF
##2A570D1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F00
Deuteranopia (green-blind)
#544B15
Tritanopia (blue-blind)
#285349
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a570d;
/* rgb */ color: rgb(42, 87, 13);
/* oklch */ color: oklch(40.9% 0.113 136.3);
Tailwind
colors: {
  custom: {
    50: '#698753',
    500: '#2a570d',
    950: '#000000',
  },
}
SCSS
$custom: #2a570d;
$custom-light: #698753;
$custom-dark: #000000;
JSON
{
  "hex": "#2a570d",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 13
  },
  "hsl": {
    "h": 96.486,
    "s": 74,
    "l": 19.608
  },
  "oklch": {
    "l": 0.40891,
    "c": 0.11286,
    "h": 136.3
  },
  "luminance": 0.07338
}

Semantic roles & 50–950 ramp

primary
#2A570D
secondary
#6B2E92
accent
#37F1A8
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2A570D

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

Preview Lab → · Contrast checker → · Palette generator →

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