#38173E#38173E

#38173E is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.2% C 0.080 H 321.3°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#38173E
RGBrgb(56, 23, 62)
HSLhsl(291, 46%, 17%)
HSVhsv(291, 63%, 24%)
CMYKcmyk(9.7%, 62.9%, 0%, 75.7%)
CIE-LABlab(14.41, 23.47, -18.01)
CIE-LCHlch(14.41, 29.58, 322.50°)
OKLaboklab(27.2% 0.0623 -0.05)
OKLCHoklch(27.2% 0.08 321.3)
XYZxyz(2.8067, 1.8015, 4.7564)
Luminance0.0180 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38173E #1D3E17
analogous
#25173E #38173E #3E1731
triadic
#38173E #3E3817 #173E38
tetradic
#38173E #3E2517 #1D3E17 #17313E
square
#38173E #3E2517 #1D3E17 #17313E
split-complementary
#38173E #313E17 #173E25
monochromatic
#140816 #140816 #38173E #60286B #893897

Accessibility & contrast

On white

15.44
#38173E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#38173E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38173E
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38173E#FFFFFF#000000##FFFFFF
##38173E1.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10223F
Deuteranopia (green-blind)
#1B263D
Tritanopia (blue-blind)
#391D27
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #38173e;
/* rgb */ color: rgb(56, 23, 62);
/* oklch */ color: oklch(27.2% 0.080 321.3);
Tailwind
colors: {
  custom: {
    50: '#705673',
    500: '#38173e',
    950: '#000000',
  },
}
SCSS
$custom: #38173e;
$custom-light: #705673;
$custom-dark: #000000;
JSON
{
  "hex": "#38173e",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 62
  },
  "hsl": {
    "h": 290.769,
    "s": 45.882,
    "l": 16.667
  },
  "oklch": {
    "l": 0.27202,
    "c": 0.07985,
    "h": 321.3
  },
  "luminance": 0.01801
}

Semantic roles & 50–950 ramp

primary
#38173E
secondary
#45753C
accent
#D65266
background
#F6F5F7
surface
#ECE9ED
border
#C7C5C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #38173E

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

Preview Lab → · Contrast checker → · Palette generator →

#38173E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva