#396818#396818

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

Color values

HEX#396818
RGBrgb(57, 104, 24)
HSLhsl(95, 63%, 25%)
HSVhsv(95, 77%, 41%)
CMYKcmyk(45.2%, 0%, 76.9%, 59.2%)
CIE-LABlab(39.30, -30.78, 37.78)
CIE-LCHlch(39.30, 48.73, 129.17°)
OKLaboklab(46.65% -0.0859 0.085)
OKLCHoklch(46.65% 0.121 135.3)
XYZxyz(6.8024, 10.8360, 2.5971)
Luminance0.1084 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#396818 #471868
analogous
#616818 #396818 #18681F
triadic
#396818 #183968 #681839
tetradic
#396818 #186168 #471868 #681F18
square
#396818 #186168 #471868 #681F18
split-complementary
#396818 #1F1868 #681861
monochromatic
#0E1906 #1E360D #396818 #549A23 #70CB2F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##396818#FFFFFF#000000##FFFFFF
##3968181.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)
#6C5F09
Deuteranopia (green-blind)
#665B20
Tritanopia (blue-blind)
#386458
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #396818;
/* rgb */ color: rgb(57, 104, 24);
/* oklch */ color: oklch(46.6% 0.121 135.3);
Tailwind
colors: {
  custom: {
    50: '#74935b',
    500: '#396818',
    950: '#000000',
  },
}
SCSS
$custom: #396818;
$custom-light: #74935b;
$custom-dark: #000000;
JSON
{
  "hex": "#396818",
  "rgb": {
    "r": 57,
    "g": 104,
    "b": 24
  },
  "hsl": {
    "h": 95.25,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.46645,
    "c": 0.12085,
    "h": 135.3
  },
  "luminance": 0.10836
}

Semantic roles & 50–950 ramp

primary
#396818
secondary
#763E9E
accent
#42E6A2
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #396818

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

Preview Lab → · Contrast checker → · Palette generator →

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