#3A5817#3A5817

#3A5817 is a dark, moderate yellow-green. Relative luminance 0.079; OKLCH L 42.2% C 0.098 H 131.0°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#3A5817
RGBrgb(58, 88, 23)
HSLhsl(88, 59%, 22%)
HSVhsv(88, 74%, 35%)
CMYKcmyk(34.1%, 0%, 73.9%, 65.5%)
CIE-LABlab(33.86, -22.82, 32.68)
CIE-LCHlch(33.86, 39.86, 124.93°)
OKLaboklab(42.21% -0.0644 0.0741)
OKLCHoklch(42.21% 0.098 131)
XYZxyz(5.3893, 7.9407, 2.0592)
Luminance0.0794 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5817 #351758
analogous
#585617 #3A5817 #1A5817
triadic
#3A5817 #173A58 #58173A
tetradic
#3A5817 #175856 #351758 #58171A
square
#3A5817 #175856 #351758 #58171A
split-complementary
#3A5817 #171A58 #561758
monochromatic
#101806 #1A270A #3A5817 #5A8924 #7AB930

Accessibility & contrast

On white

8.11
#3A5817 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#3A5817 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A5817
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5817#FFFFFF#000000##FFFFFF
##3A58171.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C510D
Deuteranopia (green-blind)
#584F1D
Tritanopia (blue-blind)
#3B544B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3a5817;
/* rgb */ color: rgb(58, 88, 23);
/* oklch */ color: oklch(42.2% 0.098 131.0);
Tailwind
colors: {
  custom: {
    50: '#738758',
    500: '#3a5817',
    950: '#000000',
  },
}
SCSS
$custom: #3a5817;
$custom-light: #738758;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5817",
  "rgb": {
    "r": 58,
    "g": 88,
    "b": 23
  },
  "hsl": {
    "h": 87.692,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.4221,
    "c": 0.09823,
    "h": 131
  },
  "luminance": 0.07941
}

Semantic roles & 50–950 ramp

primary
#3A5817
secondary
#623C8F
accent
#46E28E
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#080B03
muted
#7B7C78

Preview Lab

Preview with #3A5817

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

Preview Lab → · Contrast checker → · Palette generator →

#3A5817 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva