#48217E#48217E

#48217E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.147 H 297.6°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#48217E
RGBrgb(72, 33, 126)
HSLhsl(265, 58%, 31%)
HSVhsv(265, 74%, 49%)
CMYKcmyk(42.9%, 73.8%, 0%, 50.6%)
CIE-LABlab(23.58, 38.80, -45.70)
CIE-LCHlch(23.58, 59.95, 310.33°)
OKLaboklab(35.84% 0.0682 -0.1306)
OKLCHoklch(35.84% 0.147 297.6)
XYZxyz(6.9813, 3.9717, 20.1334)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48217E #577E21
analogous
#21287E #48217E #76217E
triadic
#48217E #7E4821 #217E48
tetradic
#48217E #7E2128 #577E21 #217E76
square
#48217E #7E2128 #577E21 #217E76
split-complementary
#48217E #7E7621 #287E21
monochromatic
#11081D #2C144E #48217E #642EAE #824AD0

Accessibility & contrast

On white

11.70
#48217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#48217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48217E
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48217E#FFFFFF#000000##FFFFFF
##48217E1.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#3A384D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #48217e;
/* rgb */ color: rgb(72, 33, 126);
/* oklch */ color: oklch(35.8% 0.147 297.6);
Tailwind
colors: {
  custom: {
    50: '#8060a4',
    500: '#48217e',
    950: '#000000',
  },
}
SCSS
$custom: #48217e;
$custom-light: #8060a4;
$custom-dark: #000000;
JSON
{
  "hex": "#48217e",
  "rgb": {
    "r": 72,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 265.161,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35843,
    "c": 0.14735,
    "h": 297.6
  },
  "luminance": 0.03972
}

Semantic roles & 50–950 ramp

primary
#48217E
secondary
#86B14A
accent
#E246A0
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #48217E

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

Preview Lab → · Contrast checker → · Palette generator →

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