#3A5811#3A5811

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

Color values

HEX#3A5811
RGBrgb(58, 88, 17)
HSLhsl(85, 68%, 21%)
HSVhsv(85, 81%, 35%)
CMYKcmyk(34.1%, 0%, 80.7%, 65.5%)
CIE-LABlab(33.81, -23.27, 35.15)
CIE-LCHlch(33.81, 42.15, 123.50°)
OKLaboklab(42.16% -0.0662 0.0783)
OKLCHoklch(42.16% 0.103 130.2)
XYZxyz(5.3358, 7.9193, 1.7777)
Luminance0.0792 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5811 #2F1158
analogous
#585211 #3A5811 #165811
triadic
#3A5811 #113A58 #58113A
tetradic
#3A5811 #115852 #2F1158 #581116
square
#3A5811 #115852 #2F1158 #581116
split-complementary
#3A5811 #111658 #521158
monochromatic
#111A05 #182507 #3A5811 #5C8B1B #7EBF25

Accessibility & contrast

On white

8.13
#3A5811 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#3A5811 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A5811
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5811#FFFFFF#000000##FFFFFF
##3A58111.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5103
Deuteranopia (green-blind)
#584F18
Tritanopia (blue-blind)
#3C544A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3a5811;
/* rgb */ color: rgb(58, 88, 17);
/* oklch */ color: oklch(42.2% 0.103 130.2);
Tailwind
colors: {
  custom: {
    50: '#738755',
    500: '#3a5811',
    950: '#000000',
  },
}
SCSS
$custom: #3a5811;
$custom-light: #738755;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5811",
  "rgb": {
    "r": 58,
    "g": 88,
    "b": 17
  },
  "hsl": {
    "h": 85.352,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.42159,
    "c": 0.10254,
    "h": 130.2
  },
  "luminance": 0.07919
}

Semantic roles & 50–950 ramp

primary
#3A5811
secondary
#5B3491
accent
#3DEA86
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#080B03
muted
#7B7C78

Preview Lab

Preview with #3A5811

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

Preview Lab → · Contrast checker → · Palette generator →

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