#388312#388312

#388312 is a mid, vivid yellow-green. Relative luminance 0.171; OKLCH L 54.1% C 0.159 H 138.1°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#388312
RGBrgb(56, 131, 18)
HSLhsl(100, 76%, 29%)
HSVhsv(100, 86%, 51%)
CMYKcmyk(57.3%, 0%, 86.3%, 48.6%)
CIE-LABlab(48.41, -42.71, 48.33)
CIE-LCHlch(48.41, 64.50, 131.46°)
OKLaboklab(54.11% -0.1183 0.1062)
OKLCHoklch(54.11% 0.159 138.1)
XYZxyz(9.8560, 17.1162, 3.3565)
Luminance0.1712 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#388312 #5D1283
analogous
#718312 #388312 #128325
triadic
#388312 #123883 #831238
tetradic
#388312 #127183 #5D1283 #832512
square
#388312 #127183 #5D1283 #832512
split-complementary
#388312 #251283 #831271
monochromatic
#0C1B04 #214D0B #388312 #4FB919 #6AE22D

Accessibility & contrast

On white

4.75
#388312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#388312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #388312
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##388312#FFFFFF#000000##FFFFFF
##3883121.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#7E7121
Tritanopia (blue-blind)
#317E6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #388312;
/* rgb */ color: rgb(56, 131, 18);
/* oklch */ color: oklch(54.1% 0.159 138.1);
Tailwind
colors: {
  custom: {
    50: '#78a85c',
    500: '#388312',
    950: '#000000',
  },
}
SCSS
$custom: #388312;
$custom-light: #78a85c;
$custom-dark: #000000;
JSON
{
  "hex": "#388312",
  "rgb": {
    "r": 56,
    "g": 131,
    "b": 18
  },
  "hsl": {
    "h": 99.823,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.54114,
    "c": 0.15895,
    "h": 138.1
  },
  "luminance": 0.17117
}

Semantic roles & 50–950 ramp

primary
#388312
secondary
#8D38B8
accent
#35F2B3
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #388312

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

Preview Lab → · Contrast checker → · Palette generator →

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