#396212#396212

#396212 is a dark, moderate yellow-green. Relative luminance 0.096; OKLCH L 44.9% C 0.116 H 133.4°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#396212
RGBrgb(57, 98, 18)
HSLhsl(91, 69%, 23%)
HSVhsv(91, 82%, 38%)
CMYKcmyk(41.8%, 0%, 81.6%, 61.6%)
CIE-LABlab(37.20, -28.44, 38.01)
CIE-LCHlch(37.20, 47.48, 126.81°)
OKLaboklab(44.91% -0.08 0.0845)
OKLCHoklch(44.91% 0.116 133.4)
XYZxyz(6.1641, 9.6486, 2.1097)
Luminance0.0965 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#396212 #3B1262
analogous
#616212 #396212 #126213
triadic
#396212 #123962 #621239
tetradic
#396212 #126162 #3B1262 #621312
square
#396212 #126162 #3B1262 #621312
split-complementary
#396212 #131262 #621261
monochromatic
#0F1A05 #1B2E09 #396212 #57961B #75C925

Accessibility & contrast

On white

7.17
#396212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#396212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #396212
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##396212#FFFFFF#000000##FFFFFF
##3962121.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#665A01
Deuteranopia (green-blind)
#61561A
Tritanopia (blue-blind)
#395E53
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #396212;
/* rgb */ color: rgb(57, 98, 18);
/* oklch */ color: oklch(44.9% 0.116 133.4);
Tailwind
colors: {
  custom: {
    50: '#748f57',
    500: '#396212',
    950: '#000000',
  },
}
SCSS
$custom: #396212;
$custom-light: #748f57;
$custom-dark: #000000;
JSON
{
  "hex": "#396212",
  "rgb": {
    "r": 57,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 90.75,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.44913,
    "c": 0.1164,
    "h": 133.4
  },
  "luminance": 0.09649
}

Semantic roles & 50–950 ramp

primary
#396212
secondary
#69369A
accent
#3CEC96
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #396212

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

Preview Lab → · Contrast checker → · Palette generator →

#396212 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva