#387212#387212

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

Color values

HEX#387212
RGBrgb(56, 114, 18)
HSLhsl(96, 73%, 26%)
HSVhsv(96, 84%, 45%)
CMYKcmyk(50.9%, 0%, 84.2%, 55.3%)
CIE-LABlab(42.64, -35.88, 43.09)
CIE-LCHlch(42.64, 56.07, 129.78°)
OKLaboklab(49.36% -0.0999 0.0952)
OKLCHoklch(49.36% 0.138 136.4)
XYZxyz(7.7572, 12.9185, 2.6569)
Luminance0.1292 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#387212 #4C1272
analogous
#687212 #387212 #12721C
triadic
#387212 #123872 #721238
tetradic
#387212 #126872 #4C1272 #721C12
square
#387212 #126872 #4C1272 #721C12
split-complementary
#387212 #1C1272 #721268
monochromatic
#0D1A04 #1E3D0A #387212 #52A71A #6CDC23

Accessibility & contrast

On white

5.86
#387212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#387212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #387212
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##387212#FFFFFF#000000##FFFFFF
##3872121.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766800
Deuteranopia (green-blind)
#6F631D
Tritanopia (blue-blind)
#356D61
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #387212;
/* rgb */ color: rgb(56, 114, 18);
/* oklch */ color: oklch(49.4% 0.138 136.4);
Tailwind
colors: {
  custom: {
    50: '#759b5a',
    500: '#387212',
    950: '#000000',
  },
}
SCSS
$custom: #387212;
$custom-light: #759b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#387212",
  "rgb": {
    "r": 56,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 96.25,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.49361,
    "c": 0.13803,
    "h": 136.4
  },
  "luminance": 0.12919
}

Semantic roles & 50–950 ramp

primary
#387212
secondary
#7C37A9
accent
#38EFA7
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #387212

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

Preview Lab → · Contrast checker → · Palette generator →

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