#9F48DC#9F48DC

#9F48DC is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 58.3% C 0.219 H 307.9°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#9F48DC
RGBrgb(159, 72, 220)
HSLhsl(275, 68%, 57%)
HSVhsv(275, 67%, 86%)
CMYKcmyk(27.7%, 67.3%, 0%, 13.7%)
CIE-LABlab(48.48, 60.73, -61.00)
CIE-LCHlch(48.48, 86.07, 314.87°)
OKLaboklab(58.25% 0.1346 -0.1727)
OKLCHoklch(58.25% 0.219 307.9)
XYZxyz(29.5310, 17.1734, 69.4554)
Luminance0.1717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F48DC #85DC48
analogous
#5548DC #9F48DC #DC48CF
triadic
#9F48DC #DC9F48 #48DC9F
tetradic
#9F48DC #DC5548 #85DC48 #48CFDC
square
#9F48DC #DC5548 #85DC48 #48CFDC
split-complementary
#9F48DC #CFDC48 #48DC55
monochromatic
#5F1B8E #8125C2 #9F48DC #BA7BE6 #D5AFF0

Accessibility & contrast

On white

4.74
#9F48DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#9F48DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F48DC
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F48DC#FFFFFF#000000##FFFFFF
##9F48DC1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E0
Deuteranopia (green-blind)
#2774D9
Tritanopia (blue-blind)
#95688C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9f48dc;
/* rgb */ color: rgb(159, 72, 220);
/* oklch */ color: oklch(58.3% 0.219 307.9);
Tailwind
colors: {
  custom: {
    50: '#c081e8',
    500: '#9f48dc',
    950: '#000000',
  },
}
SCSS
$custom: #9f48dc;
$custom-light: #c081e8;
$custom-dark: #000000;
JSON
{
  "hex": "#9f48dc",
  "rgb": {
    "r": 159,
    "g": 72,
    "b": 220
  },
  "hsl": {
    "h": 275.27,
    "s": 67.89,
    "l": 57.255
  },
  "oklch": {
    "l": 0.58252,
    "c": 0.21901,
    "h": 307.9
  },
  "luminance": 0.17173
}

Semantic roles & 50–950 ramp

primary
#9F48DC
secondary
#BBDEA2
accent
#EB3D85
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9F48DC

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

Preview Lab → · Contrast checker → · Palette generator →

#9F48DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva