#3A5812#3A5812

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

Color values

HEX#3A5812
RGBrgb(58, 88, 18)
HSLhsl(86, 66%, 21%)
HSVhsv(86, 80%, 35%)
CMYKcmyk(34.1%, 0%, 79.5%, 65.5%)
CIE-LABlab(33.82, -23.20, 34.76)
CIE-LCHlch(33.82, 41.79, 123.72°)
OKLaboklab(42.17% -0.0659 0.0777)
OKLCHoklch(42.17% 0.102 130.3)
XYZxyz(5.3438, 7.9225, 1.8198)
Luminance0.0792 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5812 #301258
analogous
#585312 #3A5812 #175812
triadic
#3A5812 #123A58 #58123A
tetradic
#3A5812 #125853 #301258 #581217
square
#3A5812 #125853 #301258 #581217
split-complementary
#3A5812 #121758 #531258
monochromatic
#111905 #192508 #3A5812 #5B8B1C #7DBE27

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A5812#FFFFFF#000000##FFFFFF
##3A58121.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)
#5C5105
Deuteranopia (green-blind)
#584F19
Tritanopia (blue-blind)
#3C544B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3a5812;
/* rgb */ color: rgb(58, 88, 18);
/* oklch */ color: oklch(42.2% 0.102 130.3);
Tailwind
colors: {
  custom: {
    50: '#738756',
    500: '#3a5812',
    950: '#000000',
  },
}
SCSS
$custom: #3a5812;
$custom-light: #738756;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5812",
  "rgb": {
    "r": 58,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 85.714,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.42167,
    "c": 0.10188,
    "h": 130.3
  },
  "luminance": 0.07923
}

Semantic roles & 50–950 ramp

primary
#3A5812
secondary
#5C3591
accent
#3FE988
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#080B03
muted
#7B7C78

Preview Lab

Preview with #3A5812

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

Preview Lab → · Contrast checker → · Palette generator →

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