#38971F#38971F

#38971F is a mid, vivid green. Relative luminance 0.231; OKLCH L 59.7% C 0.177 H 140.2°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#38971F
RGBrgb(56, 151, 31)
HSLhsl(108, 66%, 36%)
HSVhsv(108, 79%, 59%)
CMYKcmyk(62.9%, 0%, 79.5%, 40.8%)
CIE-LABlab(55.15, -49.42, 50.73)
CIE-LCHlch(55.15, 70.82, 134.25°)
OKLaboklab(59.71% -0.1356 0.1131)
OKLCHoklch(59.71% 0.177 140.2)
XYZxyz(12.9442, 23.0717, 5.0672)
Luminance0.2307 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38971F #7E1F97
analogous
#74971F #38971F #1F9742
triadic
#38971F #1F3897 #971F38
tetradic
#38971F #1F7497 #7E1F97 #97421F
square
#38971F #1F7497 #7E1F97 #97421F
split-complementary
#38971F #421F97 #971F74
monochromatic
#12310A #256415 #38971F #4BCA29 #71DC54

Accessibility & contrast

On white

3.74
#38971F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#38971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #38971F
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38971F#FFFFFF#000000##000000
##38971F1.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8900
Deuteranopia (green-blind)
#90812D
Tritanopia (blue-blind)
#2A9281
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #38971f;
/* rgb */ color: rgb(56, 151, 31);
/* oklch */ color: oklch(59.7% 0.177 140.2);
Tailwind
colors: {
  custom: {
    50: '#7bb665',
    500: '#38971f',
    950: '#000000',
  },
}
SCSS
$custom: #38971f;
$custom-light: #7bb665;
$custom-dark: #000000;
JSON
{
  "hex": "#38971f",
  "rgb": {
    "r": 56,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 107.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59705,
    "c": 0.17659,
    "h": 140.2
  },
  "luminance": 0.23073
}

Semantic roles & 50–950 ramp

primary
#38971F
secondary
#A952BF
accent
#3FE9C5
background
#F8FBF6
surface
#EFF6EB
border
#CAD0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #38971F

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

Preview Lab → · Contrast checker → · Palette generator →

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