#48217C#48217C

#48217C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.145 H 298.2°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#48217C
RGBrgb(72, 33, 124)
HSLhsl(266, 58%, 31%)
HSVhsv(266, 73%, 49%)
CMYKcmyk(41.9%, 73.4%, 0%, 51.4%)
CIE-LABlab(23.41, 38.25, -44.71)
CIE-LCHlch(23.41, 58.84, 310.55°)
OKLaboklab(35.67% 0.0686 -0.1277)
OKLCHoklch(35.67% 0.145 298.2)
XYZxyz(6.8535, 3.9206, 19.4605)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48217C #557C21
analogous
#21277C #48217C #75217C
triadic
#48217C #7C4821 #217C48
tetradic
#48217C #7C2127 #557C21 #217C75
square
#48217C #7C2127 #557C21 #217C75
split-complementary
#48217C #7C7521 #277C21
monochromatic
#10071B #2C144C #48217C #642EAC #8249CF

Accessibility & contrast

On white

11.77
#48217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#48217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48217C
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48217C#FFFFFF#000000##FFFFFF
##48217C1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#3B374C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #48217c;
/* rgb */ color: rgb(72, 33, 124);
/* oklch */ color: oklch(35.7% 0.145 298.2);
Tailwind
colors: {
  custom: {
    50: '#8060a3',
    500: '#48217c',
    950: '#000000',
  },
}
SCSS
$custom: #48217c;
$custom-light: #8060a3;
$custom-dark: #000000;
JSON
{
  "hex": "#48217c",
  "rgb": {
    "r": 72,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 265.714,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35669,
    "c": 0.14497,
    "h": 298.2
  },
  "luminance": 0.03921
}

Semantic roles & 50–950 ramp

primary
#48217C
secondary
#84AF4A
accent
#E1479F
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #48217C

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

Preview Lab → · Contrast checker → · Palette generator →

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