#2A570C#2A570C

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

Color values

HEX#2A570C
RGBrgb(42, 87, 12)
HSLhsl(96, 76%, 19%)
HSVhsv(96, 86%, 34%)
CMYKcmyk(51.7%, 0%, 86.2%, 65.9%)
CIE-LABlab(32.56, -29.37, 35.46)
CIE-LCHlch(32.56, 46.04, 129.64°)
OKLaboklab(40.88% -0.0819 0.0785)
OKLCHoklch(40.88% 0.113 136.2)
XYZxyz(4.4293, 7.3349, 1.5301)
Luminance0.0733 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A570C #390C57
analogous
#50570C #2A570C #0C5714
triadic
#2A570C #0C2A57 #570C2A
tetradic
#2A570C #0C5057 #390C57 #57140C
square
#2A570C #0C5057 #390C57 #57140C
split-complementary
#2A570C #140C57 #570C50
monochromatic
#0D1B04 #102105 #2A570C #448D13 #5EC31B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A570C#FFFFFF#000000##FFFFFF
##2A570C1.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: #2a570c;
/* rgb */ color: rgb(42, 87, 12);
/* oklch */ color: oklch(40.9% 0.113 136.2);
Tailwind
colors: {
  custom: {
    50: '#698752',
    500: '#2a570c',
    950: '#000000',
  },
}
SCSS
$custom: #2a570c;
$custom-light: #698752;
$custom-dark: #000000;
JSON
{
  "hex": "#2a570c",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 12
  },
  "hsl": {
    "h": 96,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.40884,
    "c": 0.11339,
    "h": 136.2
  },
  "luminance": 0.07335
}

Semantic roles & 50–950 ramp

primary
#2A570C
secondary
#6A2D92
accent
#35F2A7
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#070B02
muted
#7A7C78

Preview Lab

Preview with #2A570C

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

Preview Lab → · Contrast checker → · Palette generator →

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