#387A12#387A12

#387A12 is a mid, vivid yellow-green. Relative luminance 0.148; OKLCH L 51.6% C 0.148 H 137.3°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#387A12
RGBrgb(56, 122, 18)
HSLhsl(98, 74%, 27%)
HSVhsv(98, 85%, 48%)
CMYKcmyk(54.1%, 0%, 85.2%, 52.2%)
CIE-LABlab(45.36, -39.17, 45.59)
CIE-LCHlch(45.36, 60.10, 130.67°)
OKLaboklab(51.6% -0.1088 0.1004)
OKLCHoklch(51.6% 0.148 137.3)
XYZxyz(8.6993, 14.8028, 2.9710)
Luminance0.1480 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#387A12 #54127A
analogous
#6C7A12 #387A12 #127A20
triadic
#387A12 #12387A #7A1238
tetradic
#387A12 #126C7A #54127A #7A2012
square
#387A12 #126C7A #54127A #7A2012
split-complementary
#387A12 #20127A #7A126C
monochromatic
#0C1B04 #20450A #387A12 #50AF1A #6ADF27

Accessibility & contrast

On white

5.30
#387A12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#387A12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #387A12
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##387A12#FFFFFF#000000##FFFFFF
##387A121.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#76691F
Tritanopia (blue-blind)
#337567
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #387a12;
/* rgb */ color: rgb(56, 122, 18);
/* oklch */ color: oklch(51.6% 0.148 137.3);
Tailwind
colors: {
  custom: {
    50: '#76a15b',
    500: '#387a12',
    950: '#000000',
  },
}
SCSS
$custom: #387a12;
$custom-light: #76a15b;
$custom-dark: #000000;
JSON
{
  "hex": "#387a12",
  "rgb": {
    "r": 56,
    "g": 122,
    "b": 18
  },
  "hsl": {
    "h": 98.077,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.51604,
    "c": 0.14804,
    "h": 137.3
  },
  "luminance": 0.14803
}

Semantic roles & 50–950 ramp

primary
#387A12
secondary
#8438B0
accent
#37F1AD
background
#F7FAF5
surface
#EEF3E9
border
#C9CDC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #387A12

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

Preview Lab → · Contrast checker → · Palette generator →

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