#48217B#48217B

#48217B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.144 H 298.6°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#48217B
RGBrgb(72, 33, 123)
HSLhsl(266, 58%, 31%)
HSVhsv(266, 73%, 48%)
CMYKcmyk(41.5%, 73.2%, 0%, 51.8%)
CIE-LABlab(23.32, 37.98, -44.22)
CIE-LCHlch(23.32, 58.29, 310.66°)
OKLaboklab(35.58% 0.0688 -0.1262)
OKLCHoklch(35.58% 0.144 298.6)
XYZxyz(6.7906, 3.8954, 19.1292)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48217B #547B21
analogous
#21277B #48217B #75217B
triadic
#48217B #7B4821 #217B48
tetradic
#48217B #7B2127 #547B21 #217B75
square
#48217B #7B2127 #547B21 #217B75
split-complementary
#48217B #7B7521 #277B21
monochromatic
#10071A #2C144B #48217B #642EAB #8248CE

Accessibility & contrast

On white

11.80
#48217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #48217B
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48217B#FFFFFF#000000##FFFFFF
##48217B1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#3C374B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #48217b;
/* rgb */ color: rgb(72, 33, 123);
/* oklch */ color: oklch(35.6% 0.144 298.6);
Tailwind
colors: {
  custom: {
    50: '#8060a2',
    500: '#48217b',
    950: '#000000',
  },
}
SCSS
$custom: #48217b;
$custom-light: #8060a2;
$custom-dark: #000000;
JSON
{
  "hex": "#48217b",
  "rgb": {
    "r": 72,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 266,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35583,
    "c": 0.14378,
    "h": 298.6
  },
  "luminance": 0.03895
}

Semantic roles & 50–950 ramp

primary
#48217B
secondary
#83AE4A
accent
#E1479E
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #48217B

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

Preview Lab → · Contrast checker → · Palette generator →

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