#387E12#387E12

#387E12 is a mid, vivid yellow-green. Relative luminance 0.158; OKLCH L 52.7% C 0.153 H 137.7°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#387E12
RGBrgb(56, 126, 18)
HSLhsl(99, 75%, 28%)
HSVhsv(99, 86%, 49%)
CMYKcmyk(55.6%, 0%, 85.7%, 50.6%)
CIE-LABlab(46.72, -40.76, 46.82)
CIE-LCHlch(46.72, 62.07, 131.04°)
OKLaboklab(52.72% -0.113 0.103)
OKLCHoklch(52.72% 0.153 137.7)
XYZxyz(9.2006, 15.8054, 3.1381)
Luminance0.1581 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#387E12 #58127E
analogous
#6E7E12 #387E12 #127E22
triadic
#387E12 #12387E #7E1238
tetradic
#387E12 #126E7E #58127E #7E2212
square
#387E12 #126E7E #58127E #7E2212
split-complementary
#387E12 #22127E #7E126E
monochromatic
#0C1B04 #20480A #387E12 #50B41A #6AE12A

Accessibility & contrast

On white

5.05
#387E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#387E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #387E12
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##387E12#FFFFFF#000000##FFFFFF
##387E121.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#796D20
Tritanopia (blue-blind)
#33796B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #387e12;
/* rgb */ color: rgb(56, 126, 18);
/* oklch */ color: oklch(52.7% 0.153 137.7);
Tailwind
colors: {
  custom: {
    50: '#77a45c',
    500: '#387e12',
    950: '#000000',
  },
}
SCSS
$custom: #387e12;
$custom-light: #77a45c;
$custom-dark: #000000;
JSON
{
  "hex": "#387e12",
  "rgb": {
    "r": 56,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 98.889,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52721,
    "c": 0.15293,
    "h": 137.7
  },
  "luminance": 0.15806
}

Semantic roles & 50–950 ramp

primary
#387E12
secondary
#8838B4
accent
#36F2B0
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #387E12

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

Preview Lab → · Contrast checker → · Palette generator →

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