#38871F#38871F

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

Color values

HEX#38871F
RGBrgb(56, 135, 31)
HSLhsl(106, 63%, 33%)
HSVhsv(106, 77%, 53%)
CMYKcmyk(58.5%, 0%, 77%, 47.1%)
CIE-LABlab(49.82, -43.47, 45.55)
CIE-LCHlch(49.82, 62.96, 133.66°)
OKLaboklab(55.3% -0.1196 0.1023)
OKLCHoklch(55.3% 0.157 139.4)
XYZxyz(10.5417, 18.2667, 4.2664)
Luminance0.1827 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38871F #6E1F87
analogous
#6C871F #38871F #1F873A
triadic
#38871F #1F3887 #871F38
tetradic
#38871F #1F6C87 #6E1F87 #873A1F
square
#38871F #1F6C87 #6E1F87 #873A1F
split-complementary
#38871F #3A1F87 #871F6C
monochromatic
#0F2308 #235514 #38871F #4DB92A #6CD64B

Accessibility & contrast

On white

4.51
#38871F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##38871F#FFFFFF#000000##000000
##38871F1.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B09
Deuteranopia (green-blind)
#81742A
Tritanopia (blue-blind)
#2F8273
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #38871f;
/* rgb */ color: rgb(56, 135, 31);
/* oklch */ color: oklch(55.3% 0.157 139.4);
Tailwind
colors: {
  custom: {
    50: '#78ab63',
    500: '#38871f',
    950: '#000000',
  },
}
SCSS
$custom: #38871f;
$custom-light: #78ab63;
$custom-dark: #000000;
JSON
{
  "hex": "#38871f",
  "rgb": {
    "r": 56,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 105.577,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.55301,
    "c": 0.15737,
    "h": 139.4
  },
  "luminance": 0.18268
}

Semantic roles & 50–950 ramp

primary
#38871F
secondary
#9E4AB8
accent
#42E6BE
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #38871F

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

Preview Lab → · Contrast checker → · Palette generator →

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