#48217F#48217F

#48217F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.149 H 297.2°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#48217F
RGBrgb(72, 33, 127)
HSLhsl(265, 59%, 31%)
HSVhsv(265, 74%, 50%)
CMYKcmyk(43.3%, 74%, 0%, 50.2%)
CIE-LABlab(23.66, 39.08, -46.20)
CIE-LCHlch(23.66, 60.51, 310.23°)
OKLaboklab(35.93% 0.068 -0.1321)
OKLCHoklch(35.93% 0.149 297.2)
XYZxyz(7.0461, 3.9976, 20.4749)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48217F #587F21
analogous
#21297F #48217F #77217F
triadic
#48217F #7F4821 #217F48
tetradic
#48217F #7F2129 #587F21 #217F77
square
#48217F #7F2129 #587F21 #217F77
split-complementary
#48217F #7F7721 #297F21
monochromatic
#11081E #2C144E #48217F #642EB0 #824AD0

Accessibility & contrast

On white

11.67
#48217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#48217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48217F
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48217F#FFFFFF#000000##FFFFFF
##48217F1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#3A394E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #48217f;
/* rgb */ color: rgb(72, 33, 127);
/* oklch */ color: oklch(35.9% 0.149 297.2);
Tailwind
colors: {
  custom: {
    50: '#8060a5',
    500: '#48217f',
    950: '#000000',
  },
}
SCSS
$custom: #48217f;
$custom-light: #8060a5;
$custom-dark: #000000;
JSON
{
  "hex": "#48217f",
  "rgb": {
    "r": 72,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 264.894,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35931,
    "c": 0.14854,
    "h": 297.2
  },
  "luminance": 0.03998
}

Semantic roles & 50–950 ramp

primary
#48217F
secondary
#87B24A
accent
#E246A1
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #48217F

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

Preview Lab → · Contrast checker → · Palette generator →

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