#2A570F#2A570F

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

Color values

HEX#2A570F
RGBrgb(42, 87, 15)
HSLhsl(98, 71%, 20%)
HSVhsv(98, 83%, 34%)
CMYKcmyk(51.7%, 0%, 82.8%, 65.9%)
CIE-LABlab(32.57, -29.18, 34.41)
CIE-LCHlch(32.57, 45.12, 130.29°)
OKLaboklab(40.9% -0.0811 0.0768)
OKLCHoklch(40.9% 0.112 136.6)
XYZxyz(4.4491, 7.3428, 1.6347)
Luminance0.0734 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A570F #3C0F57
analogous
#4E570F #2A570F #0F5718
triadic
#2A570F #0F2A57 #570F2A
tetradic
#2A570F #0F4E57 #3C0F57 #57180F
square
#2A570F #0F4E57 #3C0F57 #57180F
split-complementary
#2A570F #180F57 #570F4E
monochromatic
#0D1A05 #112306 #2A570F #438B18 #5CBF21

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A570F#FFFFFF#000000##FFFFFF
##2A570F1.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)
#5A4F01
Deuteranopia (green-blind)
#544B17
Tritanopia (blue-blind)
#285449
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a570f;
/* rgb */ color: rgb(42, 87, 15);
/* oklch */ color: oklch(40.9% 0.112 136.6);
Tailwind
colors: {
  custom: {
    50: '#698754',
    500: '#2a570f',
    950: '#000000',
  },
}
SCSS
$custom: #2a570f;
$custom-light: #698754;
$custom-dark: #000000;
JSON
{
  "hex": "#2a570f",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 15
  },
  "hsl": {
    "h": 97.5,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.40904,
    "c": 0.1117,
    "h": 136.6
  },
  "luminance": 0.07343
}

Semantic roles & 50–950 ramp

primary
#2A570F
secondary
#6D3191
accent
#3AEDAA
background
#F6F8F5
surface
#EBEFE8
border
#C6CAC4
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2A570F

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

Preview Lab → · Contrast checker → · Palette generator →

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