#387318#387318

#387318 is a mid, vivid yellow-green. Relative luminance 0.132; OKLCH L 49.7% C 0.136 H 137.1°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#387318
RGBrgb(56, 115, 24)
HSLhsl(99, 65%, 27%)
HSVhsv(99, 79%, 45%)
CMYKcmyk(51.3%, 0%, 79.1%, 54.9%)
CIE-LABlab(43.01, -35.93, 41.42)
CIE-LCHlch(43.01, 54.83, 130.93°)
OKLaboklab(49.68% -0.0997 0.0927)
OKLCHoklch(49.68% 0.136 137.1)
XYZxyz(7.9262, 13.1676, 2.9879)
Luminance0.1317 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#387318 #531873
analogous
#667318 #387318 #187325
triadic
#387318 #183873 #731838
tetradic
#387318 #186673 #531873 #732518
square
#387318 #186673 #531873 #732518
split-complementary
#387318 #251873 #731866
monochromatic
#0C1905 #1F400D #387318 #51A623 #6BD431

Accessibility & contrast

On white

5.78
#387318 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#387318 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #387318
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##387318#FFFFFF#000000##FFFFFF
##3873181.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776904
Deuteranopia (green-blind)
#6F6422
Tritanopia (blue-blind)
#346F62
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #387318;
/* rgb */ color: rgb(56, 115, 24);
/* oklch */ color: oklch(49.7% 0.136 137.1);
Tailwind
colors: {
  custom: {
    50: '#759c5c',
    500: '#387318',
    950: '#000000',
  },
}
SCSS
$custom: #387318;
$custom-light: #759c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#387318",
  "rgb": {
    "r": 56,
    "g": 115,
    "b": 24
  },
  "hsl": {
    "h": 98.901,
    "s": 65.468,
    "l": 27.255
  },
  "oklch": {
    "l": 0.4968,
    "c": 0.13611,
    "h": 137.1
  },
  "luminance": 0.13168
}

Semantic roles & 50–950 ramp

primary
#387318
secondary
#833FA8
accent
#3FE8AD
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #387318

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

Preview Lab → · Contrast checker → · Palette generator →

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