#2A5910#2A5910

#2A5910 is a dark, moderate yellow-green. Relative luminance 0.077; OKLCH L 41.5% C 0.114 H 137.0°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#2A5910
RGBrgb(42, 89, 16)
HSLhsl(99, 70%, 21%)
HSVhsv(99, 82%, 35%)
CMYKcmyk(52.8%, 0%, 82%, 65.1%)
CIE-LABlab(33.29, -29.99, 34.73)
CIE-LCHlch(33.29, 45.89, 130.81°)
OKLaboklab(41.5% -0.0833 0.0776)
OKLCHoklch(41.5% 0.114 137)
XYZxyz(4.6206, 7.6741, 1.7279)
Luminance0.0767 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5910 #3F1059
analogous
#4E5910 #2A5910 #10591A
triadic
#2A5910 #102A59 #59102A
tetradic
#2A5910 #104E59 #3F1059 #591A10
square
#2A5910 #104E59 #3F1059 #591A10
split-complementary
#2A5910 #1A1059 #59104E
monochromatic
#0C1A05 #122507 #2A5910 #428D19 #5BC123

Accessibility & contrast

On white

8.28
#2A5910 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2A5910 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5910
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5910#FFFFFF#000000##FFFFFF
##2A59101.008.282.538.28
#FFFFFF8.281.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5102
Deuteranopia (green-blind)
#564D18
Tritanopia (blue-blind)
#27554B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a5910;
/* rgb */ color: rgb(42, 89, 16);
/* oklch */ color: oklch(41.5% 0.114 137.0);
Tailwind
colors: {
  custom: {
    50: '#698854',
    500: '#2a5910',
    950: '#000000',
  },
}
SCSS
$custom: #2a5910;
$custom-light: #698854;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5910",
  "rgb": {
    "r": 42,
    "g": 89,
    "b": 16
  },
  "hsl": {
    "h": 98.63,
    "s": 69.524,
    "l": 20.588
  },
  "oklch": {
    "l": 0.41498,
    "c": 0.11382,
    "h": 137
  },
  "luminance": 0.07674
}

Semantic roles & 50–950 ramp

primary
#2A5910
secondary
#703392
accent
#3BECAD
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2A5910

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

Preview Lab → · Contrast checker → · Palette generator →

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