#3A5312#3A5312

#3A5312 is a dark, moderate yellow-green. Relative luminance 0.071; OKLCH L 40.8% C 0.095 H 128.5°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#3A5312
RGBrgb(58, 83, 18)
HSLhsl(83, 64%, 20%)
HSVhsv(83, 78%, 33%)
CMYKcmyk(30.1%, 0%, 78.3%, 67.5%)
CIE-LABlab(32.10, -20.64, 33.07)
CIE-LCHlch(32.10, 38.98, 121.97°)
OKLaboklab(40.77% -0.0589 0.0741)
OKLCHoklch(40.77% 0.095 128.5)
XYZxyz(4.9474, 7.1296, 1.6876)
Luminance0.0713 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5312 #2B1253
analogous
#534C12 #3A5312 #1A5312
triadic
#3A5312 #123A53 #53123A
tetradic
#3A5312 #12534C #2B1253 #53121A
square
#3A5312 #12534C #2B1253 #53121A
split-complementary
#3A5312 #121A53 #4C1253
monochromatic
#121905 #172107 #3A5312 #5D851D #80B828

Accessibility & contrast

On white

8.66
#3A5312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#3A5312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A5312
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5312#FFFFFF#000000##FFFFFF
##3A53121.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574D07
Deuteranopia (green-blind)
#544B18
Tritanopia (blue-blind)
#3C4F46
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3a5312;
/* rgb */ color: rgb(58, 83, 18);
/* oklch */ color: oklch(40.8% 0.095 128.5);
Tailwind
colors: {
  custom: {
    50: '#738355',
    500: '#3a5312',
    950: '#000000',
  },
}
SCSS
$custom: #3a5312;
$custom-light: #738355;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5312",
  "rgb": {
    "r": 58,
    "g": 83,
    "b": 18
  },
  "hsl": {
    "h": 83.077,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.40767,
    "c": 0.09471,
    "h": 128.5
  },
  "luminance": 0.0713
}

Semantic roles & 50–950 ramp

primary
#3A5312
secondary
#56358C
accent
#40E781
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#080A03
muted
#7B7C78

Preview Lab

Preview with #3A5312

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

Preview Lab → · Contrast checker → · Palette generator →

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