#2A5810#2A5810

#2A5810 is a dark, moderate yellow-green. Relative luminance 0.075; OKLCH L 41.2% C 0.112 H 136.9°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#2A5810
RGBrgb(42, 88, 16)
HSLhsl(98, 69%, 20%)
HSVhsv(98, 82%, 35%)
CMYKcmyk(52.3%, 0%, 81.8%, 65.5%)
CIE-LABlab(32.94, -29.55, 34.39)
CIE-LCHlch(32.94, 45.34, 130.68°)
OKLaboklab(41.21% -0.0821 0.0769)
OKLCHoklch(41.21% 0.112 136.9)
XYZxyz(4.5380, 7.5088, 1.7003)
Luminance0.0751 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5810 #3E1058
analogous
#4E5810 #2A5810 #10581A
triadic
#2A5810 #102A58 #58102A
tetradic
#2A5810 #104E58 #3E1058 #581A10
square
#2A5810 #104E58 #3E1058 #581A10
split-complementary
#2A5810 #1A1058 #58104E
monochromatic
#0C1A05 #112407 #2A5810 #438C19 #5BC023

Accessibility & contrast

On white

8.39
#2A5810 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2A5810 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5810
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5810#FFFFFF#000000##FFFFFF
##2A58101.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5002
Deuteranopia (green-blind)
#554C18
Tritanopia (blue-blind)
#27554A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a5810;
/* rgb */ color: rgb(42, 88, 16);
/* oklch */ color: oklch(41.2% 0.112 136.9);
Tailwind
colors: {
  custom: {
    50: '#698754',
    500: '#2a5810',
    950: '#000000',
  },
}
SCSS
$custom: #2a5810;
$custom-light: #698754;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5810",
  "rgb": {
    "r": 42,
    "g": 88,
    "b": 16
  },
  "hsl": {
    "h": 98.333,
    "s": 69.231,
    "l": 20.392
  },
  "oklch": {
    "l": 0.41205,
    "c": 0.11246,
    "h": 136.9
  },
  "luminance": 0.07509
}

Semantic roles & 50–950 ramp

primary
#2A5810
secondary
#6F3291
accent
#3CECAC
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2A5810

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

Preview Lab → · Contrast checker → · Palette generator →

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