#2A5710#2A5710

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

Color values

HEX#2A5710
RGBrgb(42, 87, 16)
HSLhsl(98, 69%, 20%)
HSVhsv(98, 82%, 34%)
CMYKcmyk(51.7%, 0%, 81.6%, 65.9%)
CIE-LABlab(32.58, -29.11, 34.04)
CIE-LCHlch(32.58, 44.79, 130.53°)
OKLaboklab(40.91% -0.0809 0.0762)
OKLCHoklch(40.91% 0.111 136.7)
XYZxyz(4.4564, 7.3457, 1.6732)
Luminance0.0735 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5710 #3D1057
analogous
#4D5710 #2A5710 #105719
triadic
#2A5710 #102A57 #57102A
tetradic
#2A5710 #104D57 #3D1057 #571910
square
#2A5710 #104D57 #3D1057 #571910
split-complementary
#2A5710 #191057 #57104D
monochromatic
#0C1A05 #112306 #2A5710 #438B1A #5CBE23

Accessibility & contrast

On white

8.50
#2A5710 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A5710
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5710#FFFFFF#000000##FFFFFF
##2A57101.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F03
Deuteranopia (green-blind)
#544B17
Tritanopia (blue-blind)
#28544A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a5710;
/* rgb */ color: rgb(42, 87, 16);
/* oklch */ color: oklch(40.9% 0.111 136.7);
Tailwind
colors: {
  custom: {
    50: '#698754',
    500: '#2a5710',
    950: '#000000',
  },
}
SCSS
$custom: #2a5710;
$custom-light: #698754;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5710",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 16
  },
  "hsl": {
    "h": 98.028,
    "s": 68.932,
    "l": 20.196
  },
  "oklch": {
    "l": 0.40912,
    "c": 0.11109,
    "h": 136.7
  },
  "luminance": 0.07346
}

Semantic roles & 50–950 ramp

primary
#2A5710
secondary
#6E3290
accent
#3CECAB
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2A5710

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

Preview Lab → · Contrast checker → · Palette generator →

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