#387D12#387D12

#387D12 is a mid, vivid yellow-green. Relative luminance 0.156; OKLCH L 52.4% C 0.152 H 137.6°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#387D12
RGBrgb(56, 125, 18)
HSLhsl(99, 75%, 28%)
HSVhsv(99, 86%, 49%)
CMYKcmyk(55.2%, 0%, 85.6%, 51%)
CIE-LABlab(46.38, -40.36, 46.51)
CIE-LCHlch(46.38, 61.58, 130.95°)
OKLaboklab(52.44% -0.112 0.1024)
OKLCHoklch(52.44% 0.152 137.6)
XYZxyz(9.0734, 15.5509, 3.0957)
Luminance0.1555 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#387D12 #57127D
analogous
#6D7D12 #387D12 #127D22
triadic
#387D12 #12387D #7D1238
tetradic
#387D12 #126D7D #57127D #7D2212
square
#387D12 #126D7D #57127D #7D2212
split-complementary
#387D12 #22127D #7D126D
monochromatic
#0C1B04 #20480A #387D12 #50B21A #6AE029

Accessibility & contrast

On white

5.11
#387D12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#387D12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #387D12
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##387D12#FFFFFF#000000##FFFFFF
##387D121.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#796C20
Tritanopia (blue-blind)
#33786A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #387d12;
/* rgb */ color: rgb(56, 125, 18);
/* oklch */ color: oklch(52.4% 0.152 137.6);
Tailwind
colors: {
  custom: {
    50: '#77a35b',
    500: '#387d12',
    950: '#000000',
  },
}
SCSS
$custom: #387d12;
$custom-light: #77a35b;
$custom-dark: #000000;
JSON
{
  "hex": "#387d12",
  "rgb": {
    "r": 56,
    "g": 125,
    "b": 18
  },
  "hsl": {
    "h": 98.692,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.52442,
    "c": 0.15172,
    "h": 137.6
  },
  "luminance": 0.15552
}

Semantic roles & 50–950 ramp

primary
#387D12
secondary
#8738B3
accent
#36F1AF
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #387D12

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

Preview Lab → · Contrast checker → · Palette generator →

#387D12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva