#387218#387218

#387218 is a mid, vivid yellow-green. Relative luminance 0.129; OKLCH L 49.4% C 0.135 H 137.0°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#387218
RGBrgb(56, 114, 24)
HSLhsl(99, 65%, 27%)
HSVhsv(99, 79%, 45%)
CMYKcmyk(50.9%, 0%, 78.9%, 55.3%)
CIE-LABlab(42.67, -35.50, 41.09)
CIE-LCHlch(42.67, 54.31, 130.83°)
OKLaboklab(49.4% -0.0986 0.092)
OKLCHoklch(49.4% 0.135 137)
XYZxyz(7.8128, 12.9408, 2.9501)
Luminance0.1294 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#387218 #521872
analogous
#657218 #387218 #187225
triadic
#387218 #183872 #721838
tetradic
#387218 #186572 #521872 #722518
square
#387218 #186572 #521872 #722518
split-complementary
#387218 #251872 #721865
monochromatic
#0C1905 #1F3F0D #387218 #51A523 #6BD431

Accessibility & contrast

On white

5.85
#387218 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#387218 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #387218
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##387218#FFFFFF#000000##FFFFFF
##3872181.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766804
Deuteranopia (green-blind)
#6E6322
Tritanopia (blue-blind)
#356E61
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #387218;
/* rgb */ color: rgb(56, 114, 24);
/* oklch */ color: oklch(49.4% 0.135 137.0);
Tailwind
colors: {
  custom: {
    50: '#759b5c',
    500: '#387218',
    950: '#000000',
  },
}
SCSS
$custom: #387218;
$custom-light: #759b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#387218",
  "rgb": {
    "r": 56,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 98.667,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.494,
    "c": 0.1348,
    "h": 137
  },
  "luminance": 0.12941
}

Semantic roles & 50–950 ramp

primary
#387218
secondary
#823EA7
accent
#40E8AC
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #387218

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

Preview Lab → · Contrast checker → · Palette generator →

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