#38217C#38217C

#38217C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.144 H 287.7°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#38217C
RGBrgb(56, 33, 124)
HSLhsl(255, 58%, 31%)
HSVhsv(255, 73%, 49%)
CMYKcmyk(54.8%, 73.4%, 0%, 51.4%)
CIE-LABlab(21.52, 35.27, -47.88)
CIE-LCHlch(21.52, 59.46, 306.38°)
OKLaboklab(33.89% 0.0438 -0.1376)
OKLCHoklch(33.89% 0.144 287.7)
XYZxyz(5.8118, 3.3834, 19.4117)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38217C #657C21
analogous
#21377C #38217C #65217C
triadic
#38217C #7C3821 #217C38
tetradic
#38217C #7C2137 #657C21 #217C65
square
#38217C #7C2137 #657C21 #217C65
split-complementary
#38217C #7C6521 #377C21
monochromatic
#0C071B #22144C #38217C #4E2EAC #6B49CF

Accessibility & contrast

On white

12.52
#38217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#38217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38217C
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38217C#FFFFFF#000000##FFFFFF
##38217C1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#1D394C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #38217c;
/* rgb */ color: rgb(56, 33, 124);
/* oklch */ color: oklch(33.9% 0.144 287.7);
Tailwind
colors: {
  custom: {
    50: '#765ea3',
    500: '#38217c',
    950: '#000000',
  },
}
SCSS
$custom: #38217c;
$custom-light: #765ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#38217c",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 255.165,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33891,
    "c": 0.14439,
    "h": 287.7
  },
  "luminance": 0.03384
}

Semantic roles & 50–950 ramp

primary
#38217C
secondary
#95AF4A
accent
#E147BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #38217C

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

Preview Lab → · Contrast checker → · Palette generator →

#38217C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva