#387817#387817

#387817 is a mid, vivid yellow-green. Relative luminance 0.143; OKLCH L 51.1% C 0.143 H 137.5°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#387817
RGBrgb(56, 120, 23)
HSLhsl(100, 68%, 28%)
HSVhsv(100, 81%, 47%)
CMYKcmyk(53.3%, 0%, 80.8%, 52.9%)
CIE-LABlab(44.71, -38.07, 43.41)
CIE-LCHlch(44.71, 57.74, 131.25°)
OKLaboklab(51.07% -0.1055 0.0966)
OKLCHoklch(51.07% 0.143 137.5)
XYZxyz(8.5017, 14.3349, 3.1294)
Luminance0.1434 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#387817 #571778
analogous
#687817 #387817 #177827
triadic
#387817 #173878 #781738
tetradic
#387817 #176878 #571778 #782717
square
#387817 #176878 #571778 #782717
split-complementary
#387817 #271778 #781768
monochromatic
#0C1A05 #20450D #387817 #50AB21 #6AD832

Accessibility & contrast

On white

5.43
#387817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#387817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #387817
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##387817#FFFFFF#000000##FFFFFF
##3878171.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#746822
Tritanopia (blue-blind)
#337366
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #387817;
/* rgb */ color: rgb(56, 120, 23);
/* oklch */ color: oklch(51.1% 0.143 137.5);
Tailwind
colors: {
  custom: {
    50: '#769f5d',
    500: '#387817',
    950: '#000000',
  },
}
SCSS
$custom: #387817;
$custom-light: #769f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#387817",
  "rgb": {
    "r": 56,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 99.588,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.51073,
    "c": 0.14309,
    "h": 137.5
  },
  "luminance": 0.14336
}

Semantic roles & 50–950 ramp

primary
#387817
secondary
#873EAD
accent
#3DEBB0
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #387817

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

Preview Lab → · Contrast checker → · Palette generator →

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