#387217#387217

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

Color values

HEX#387217
RGBrgb(56, 114, 23)
HSLhsl(98, 66%, 27%)
HSVhsv(98, 80%, 45%)
CMYKcmyk(50.9%, 0%, 79.8%, 55.3%)
CIE-LABlab(42.67, -35.57, 41.45)
CIE-LCHlch(42.67, 54.62, 130.64°)
OKLaboklab(49.39% -0.0988 0.0925)
OKLCHoklch(49.39% 0.135 136.9)
XYZxyz(7.8026, 12.9367, 2.8963)
Luminance0.1294 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#387217 #511772
analogous
#667217 #387217 #177224
triadic
#387217 #173872 #721738
tetradic
#387217 #176672 #511772 #722417
square
#387217 #176672 #511772 #722417
split-complementary
#387217 #241772 #721766
monochromatic
#0D1905 #1F3F0D #387217 #51A521 #6BD52E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##387217#FFFFFF#000000##FFFFFF
##3872171.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)
#766803
Deuteranopia (green-blind)
#6E6321
Tritanopia (blue-blind)
#356E61
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #387217;
/* rgb */ color: rgb(56, 114, 23);
/* oklch */ color: oklch(49.4% 0.135 136.9);
Tailwind
colors: {
  custom: {
    50: '#759b5c',
    500: '#387217',
    950: '#000000',
  },
}
SCSS
$custom: #387217;
$custom-light: #759b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#387217",
  "rgb": {
    "r": 56,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 98.242,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.49393,
    "c": 0.13538,
    "h": 136.9
  },
  "luminance": 0.12937
}

Semantic roles & 50–950 ramp

primary
#387217
secondary
#813DA8
accent
#3EE9AB
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #387217

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

Preview Lab → · Contrast checker → · Palette generator →

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