#396817#396817

#396817 is a mid, vivid yellow-green. Relative luminance 0.108; OKLCH L 46.6% C 0.121 H 135.2°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#396817
RGBrgb(57, 104, 23)
HSLhsl(95, 64%, 25%)
HSVhsv(95, 78%, 41%)
CMYKcmyk(45.2%, 0%, 77.9%, 59.2%)
CIE-LABlab(39.30, -30.86, 38.17)
CIE-LCHlch(39.30, 49.08, 128.95°)
OKLaboklab(46.64% -0.0862 0.0857)
OKLCHoklch(46.64% 0.122 135.2)
XYZxyz(6.7922, 10.8320, 2.5433)
Luminance0.1083 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#396817 #461768
analogous
#626817 #396817 #17681E
triadic
#396817 #173968 #681739
tetradic
#396817 #176268 #461768 #681E17
square
#396817 #176268 #461768 #681E17
split-complementary
#396817 #1E1768 #681762
monochromatic
#0E1906 #1E360C #396817 #549A22 #70CC2D

Accessibility & contrast

On white

6.63
#396817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#396817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #396817
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##396817#FFFFFF#000000##FFFFFF
##3968171.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F07
Deuteranopia (green-blind)
#665B1F
Tritanopia (blue-blind)
#386458
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #396817;
/* rgb */ color: rgb(57, 104, 23);
/* oklch */ color: oklch(46.6% 0.121 135.2);
Tailwind
colors: {
  custom: {
    50: '#74935a',
    500: '#396817',
    950: '#000000',
  },
}
SCSS
$custom: #396817;
$custom-light: #74935a;
$custom-dark: #000000;
JSON
{
  "hex": "#396817",
  "rgb": {
    "r": 57,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 94.815,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.46637,
    "c": 0.1215,
    "h": 135.2
  },
  "luminance": 0.10832
}

Semantic roles & 50–950 ramp

primary
#396817
secondary
#753D9E
accent
#41E7A1
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #396817

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

Preview Lab → · Contrast checker → · Palette generator →

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