#387F12#387F12

#387F12 is a mid, vivid yellow-green. Relative luminance 0.161; OKLCH L 53.0% C 0.154 H 137.7°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#387F12
RGBrgb(56, 127, 18)
HSLhsl(99, 75%, 28%)
HSVhsv(99, 86%, 50%)
CMYKcmyk(55.9%, 0%, 85.8%, 50.2%)
CIE-LABlab(47.06, -41.15, 47.12)
CIE-LCHlch(47.06, 62.56, 131.13°)
OKLaboklab(53% -0.1141 0.1037)
OKLCHoklch(53% 0.154 137.7)
XYZxyz(9.3291, 16.0624, 3.1809)
Luminance0.1606 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#387F12 #59127F
analogous
#6E7F12 #387F12 #127F23
triadic
#387F12 #12387F #7F1238
tetradic
#387F12 #126E7F #59127F #7F2312
square
#387F12 #126E7F #59127F #7F2312
split-complementary
#387F12 #23127F #7F126E
monochromatic
#0C1B04 #20490A #387F12 #50B51A #6AE12B

Accessibility & contrast

On white

4.99
#387F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#387F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #387F12
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##387F12#FFFFFF#000000##FFFFFF
##387F121.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#7A6D20
Tritanopia (blue-blind)
#327A6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #387f12;
/* rgb */ color: rgb(56, 127, 18);
/* oklch */ color: oklch(53.0% 0.154 137.7);
Tailwind
colors: {
  custom: {
    50: '#77a55c',
    500: '#387f12',
    950: '#000000',
  },
}
SCSS
$custom: #387f12;
$custom-light: #77a55c;
$custom-dark: #000000;
JSON
{
  "hex": "#387f12",
  "rgb": {
    "r": 56,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 99.083,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53,
    "c": 0.15414,
    "h": 137.7
  },
  "luminance": 0.16063
}

Semantic roles & 50–950 ramp

primary
#387F12
secondary
#8938B5
accent
#36F2B0
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #387F12

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

Preview Lab → · Contrast checker → · Palette generator →

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