#2A5315#2A5315

#2A5315 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.8% C 0.102 H 136.9°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#2A5315
RGBrgb(42, 83, 21)
HSLhsl(100, 60%, 20%)
HSVhsv(100, 75%, 33%)
CMYKcmyk(49.4%, 0%, 74.7%, 67.5%)
CIE-LABlab(31.19, -26.87, 30.52)
CIE-LCHlch(31.19, 40.67, 131.36°)
OKLaboklab(39.78% -0.0745 0.0696)
OKLCHoklch(39.78% 0.102 136.9)
XYZxyz(4.1833, 6.7326, 1.7884)
Luminance0.0673 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5315 #3E1553
analogous
#495315 #2A5315 #15531F
triadic
#2A5315 #152A53 #53152A
tetradic
#2A5315 #154953 #3E1553 #531F15
square
#2A5315 #154953 #3E1553 #531F15
split-complementary
#2A5315 #1F1553 #531549
monochromatic
#0C1806 #112209 #2A5315 #438421 #5BB52E

Accessibility & contrast

On white

8.95
#2A5315 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2A5315 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5315
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5315#FFFFFF#000000##FFFFFF
##2A53151.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C0C
Deuteranopia (green-blind)
#50481B
Tritanopia (blue-blind)
#285047
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a5315;
/* rgb */ color: rgb(42, 83, 21);
/* oklch */ color: oklch(39.8% 0.102 136.9);
Tailwind
colors: {
  custom: {
    50: '#688456',
    500: '#2a5315',
    950: '#000000',
  },
}
SCSS
$custom: #2a5315;
$custom-light: #688456;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5315",
  "rgb": {
    "r": 42,
    "g": 83,
    "b": 21
  },
  "hsl": {
    "h": 99.677,
    "s": 59.615,
    "l": 20.392
  },
  "oklch": {
    "l": 0.39781,
    "c": 0.10192,
    "h": 136.9
  },
  "luminance": 0.06733
}

Semantic roles & 50–950 ramp

primary
#2A5315
secondary
#6F398B
accent
#45E3AD
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #2A5315

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

Preview Lab → · Contrast checker → · Palette generator →

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