#38871B#38871B

#38871B is a mid, vivid green. Relative luminance 0.182; OKLCH L 55.3% C 0.160 H 139.1°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#38871B
RGBrgb(56, 135, 27)
HSLhsl(104, 67%, 32%)
HSVhsv(104, 80%, 53%)
CMYKcmyk(58.5%, 0%, 80%, 47.1%)
CIE-LABlab(49.79, -43.74, 46.92)
CIE-LCHlch(49.79, 64.15, 132.99°)
OKLaboklab(55.27% -0.1205 0.1046)
OKLCHoklch(55.27% 0.16 139.1)
XYZxyz(10.4923, 18.2469, 4.0058)
Luminance0.1825 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38871B #6A1B87
analogous
#6E871B #38871B #1B8734
triadic
#38871B #1B3887 #871B38
tetradic
#38871B #1B6E87 #6A1B87 #87341B
square
#38871B #1B6E87 #6A1B87 #87341B
split-complementary
#38871B #341B87 #871B6E
monochromatic
#0E2107 #235411 #38871B #4DBA25 #6BD943

Accessibility & contrast

On white

4.52
#38871B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#38871B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #38871B
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38871B#FFFFFF#000000##000000
##38871B1.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#817427
Tritanopia (blue-blind)
#308273
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #38871b;
/* rgb */ color: rgb(56, 135, 27);
/* oklch */ color: oklch(55.3% 0.160 139.1);
Tailwind
colors: {
  custom: {
    50: '#78ab61',
    500: '#38871b',
    950: '#000000',
  },
}
SCSS
$custom: #38871b;
$custom-light: #78ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#38871b",
  "rgb": {
    "r": 56,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 103.889,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.55274,
    "c": 0.1596,
    "h": 139.1
  },
  "luminance": 0.18248
}

Semantic roles & 50–950 ramp

primary
#38871B
secondary
#9A44BA
accent
#3EEABC
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #38871B

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

Preview Lab → · Contrast checker → · Palette generator →

#38871B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva