#38831B#38831B

#38831B is a mid, vivid green. Relative luminance 0.172; OKLCH L 54.2% C 0.155 H 138.8°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#38831B
RGBrgb(56, 131, 27)
HSLhsl(103, 66%, 31%)
HSVhsv(103, 79%, 51%)
CMYKcmyk(57.3%, 0%, 79.4%, 48.6%)
CIE-LABlab(48.45, -42.20, 45.63)
CIE-LCHlch(48.45, 62.15, 132.76°)
OKLaboklab(54.17% -0.1164 0.1019)
OKLCHoklch(54.17% 0.155 138.8)
XYZxyz(9.9446, 17.1517, 3.8233)
Luminance0.1715 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38831B #661B83
analogous
#6C831B #38831B #1B8332
triadic
#38831B #1B3883 #831B38
tetradic
#38831B #1B6C83 #661B83 #83321B
square
#38831B #1B6C83 #661B83 #83321B
split-complementary
#38831B #321B83 #831B6C
monochromatic
#0D1E06 #225011 #38831B #4EB625 #6BD841

Accessibility & contrast

On white

4.74
#38831B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#38831B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #38831B
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38831B#FFFFFF#000000##FFFFFF
##38831B1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #38831b;
/* rgb */ color: rgb(56, 131, 27);
/* oklch */ color: oklch(54.2% 0.155 138.8);
Tailwind
colors: {
  custom: {
    50: '#78a860',
    500: '#38831b',
    950: '#000000',
  },
}
SCSS
$custom: #38831b;
$custom-light: #78a860;
$custom-dark: #000000;
JSON
{
  "hex": "#38831b",
  "rgb": {
    "r": 56,
    "g": 131,
    "b": 27
  },
  "hsl": {
    "h": 103.269,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.54165,
    "c": 0.15469,
    "h": 138.8
  },
  "luminance": 0.17152
}

Semantic roles & 50–950 ramp

primary
#38831B
secondary
#9643B6
accent
#3FE9B9
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #38831B

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

Preview Lab → · Contrast checker → · Palette generator →

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