#2A5313#2A5313

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

Color values

HEX#2A5313
RGBrgb(42, 83, 19)
HSLhsl(98, 63%, 20%)
HSVhsv(98, 77%, 33%)
CMYKcmyk(49.4%, 0%, 77.1%, 67.5%)
CIE-LABlab(31.17, -27.05, 31.40)
CIE-LCHlch(31.17, 41.44, 130.74°)
OKLaboklab(39.76% -0.0751 0.0711)
OKLCHoklch(39.76% 0.103 136.6)
XYZxyz(4.1655, 6.7255, 1.6946)
Luminance0.0673 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5313 #3C1353
analogous
#4A5313 #2A5313 #13531C
triadic
#2A5313 #132A53 #53132A
tetradic
#2A5313 #134A53 #3C1353 #531C13
square
#2A5313 #134A53 #3C1353 #531C13
split-complementary
#2A5313 #1C1353 #53134A
monochromatic
#0D1906 #112108 #2A5313 #43851E #5CB72A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A5313#FFFFFF#000000##FFFFFF
##2A53131.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)
#564B09
Deuteranopia (green-blind)
#514819
Tritanopia (blue-blind)
#285046
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a5313;
/* rgb */ color: rgb(42, 83, 19);
/* oklch */ color: oklch(39.8% 0.103 136.6);
Tailwind
colors: {
  custom: {
    50: '#688455',
    500: '#2a5313',
    950: '#000000',
  },
}
SCSS
$custom: #2a5313;
$custom-light: #688455;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5313",
  "rgb": {
    "r": 42,
    "g": 83,
    "b": 19
  },
  "hsl": {
    "h": 98.438,
    "s": 62.745,
    "l": 20
  },
  "oklch": {
    "l": 0.39762,
    "c": 0.10343,
    "h": 136.6
  },
  "luminance": 0.06726
}

Semantic roles & 50–950 ramp

primary
#2A5313
secondary
#6D368B
accent
#42E6AB
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #2A5313

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

Preview Lab → · Contrast checker → · Palette generator →

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