#38851B#38851B

#38851B is a mid, vivid green. Relative luminance 0.177; OKLCH L 54.7% C 0.157 H 138.9°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#38851B
RGBrgb(56, 133, 27)
HSLhsl(104, 66%, 31%)
HSVhsv(104, 80%, 52%)
CMYKcmyk(57.9%, 0%, 79.7%, 47.8%)
CIE-LABlab(49.12, -42.97, 46.28)
CIE-LCHlch(49.12, 63.15, 132.88°)
OKLaboklab(54.72% -0.1185 0.1032)
OKLCHoklch(54.72% 0.157 138.9)
XYZxyz(10.2158, 17.6941, 3.9137)
Luminance0.1769 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38851B #681B85
analogous
#6D851B #38851B #1B8533
triadic
#38851B #1B3885 #851B38
tetradic
#38851B #1B6D85 #681B85 #85331B
square
#38851B #1B6D85 #681B85 #85331B
split-complementary
#38851B #331B85 #851B6D
monochromatic
#0D1F06 #235211 #38851B #4DB825 #6BD942

Accessibility & contrast

On white

4.63
#38851B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#38851B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #38851B
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38851B#FFFFFF#000000##FFFFFF
##38851B1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897900
Deuteranopia (green-blind)
#7F7227
Tritanopia (blue-blind)
#308071
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #38851b;
/* rgb */ color: rgb(56, 133, 27);
/* oklch */ color: oklch(54.7% 0.157 138.9);
Tailwind
colors: {
  custom: {
    50: '#78a960',
    500: '#38851b',
    950: '#000000',
  },
}
SCSS
$custom: #38851b;
$custom-light: #78a960;
$custom-dark: #000000;
JSON
{
  "hex": "#38851b",
  "rgb": {
    "r": 56,
    "g": 133,
    "b": 27
  },
  "hsl": {
    "h": 103.585,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.5472,
    "c": 0.15715,
    "h": 138.9
  },
  "luminance": 0.17695
}

Semantic roles & 50–950 ramp

primary
#38851B
secondary
#9844B8
accent
#3FE9BB
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #38851B

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

Preview Lab → · Contrast checker → · Palette generator →

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