#38571B#38571B

#38571B is a dark, moderate yellow-green. Relative luminance 0.077; OKLCH L 41.8% C 0.095 H 132.5°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#38571B
RGBrgb(56, 87, 27)
HSLhsl(91, 53%, 22%)
HSVhsv(91, 69%, 34%)
CMYKcmyk(35.6%, 0%, 69%, 65.9%)
CIE-LABlab(33.43, -22.79, 30.30)
CIE-LCHlch(33.43, 37.92, 126.94°)
OKLaboklab(41.84% -0.0638 0.0698)
OKLCHoklch(41.84% 0.095 132.5)
XYZxyz(5.2368, 7.7361, 2.2540)
Luminance0.0774 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38571B #3A1B57
analogous
#56571B #38571B #1B571C
triadic
#38571B #1B3857 #571B38
tetradic
#38571B #1B5657 #3A1B57 #571C1B
square
#38571B #1B5657 #3A1B57 #571C1B
split-complementary
#38571B #1C1B57 #571B56
monochromatic
#0F1707 #1A280D #38571B #568629 #74B438

Accessibility & contrast

On white

8.24
#38571B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#38571B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38571B
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38571B#FFFFFF#000000##FFFFFF
##38571B1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5014
Deuteranopia (green-blind)
#564E20
Tritanopia (blue-blind)
#39534A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #38571b;
/* rgb */ color: rgb(56, 87, 27);
/* oklch */ color: oklch(41.8% 0.095 132.5);
Tailwind
colors: {
  custom: {
    50: '#71865a',
    500: '#38571b',
    950: '#000000',
  },
}
SCSS
$custom: #38571b;
$custom-light: #71865a;
$custom-dark: #000000;
JSON
{
  "hex": "#38571b",
  "rgb": {
    "r": 56,
    "g": 87,
    "b": 27
  },
  "hsl": {
    "h": 91,
    "s": 52.632,
    "l": 22.353
  },
  "oklch": {
    "l": 0.41837,
    "c": 0.09457,
    "h": 132.5
  },
  "luminance": 0.07736
}

Semantic roles & 50–950 ramp

primary
#38571B
secondary
#68418D
accent
#4CDC96
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#080B04
muted
#7B7C79

Preview Lab

Preview with #38571B

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

Preview Lab → · Contrast checker → · Palette generator →

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