#9F48DB#9F48DB

#9F48DB is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 58.2% C 0.218 H 308.2°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#9F48DB
RGBrgb(159, 72, 219)
HSLhsl(276, 67%, 57%)
HSVhsv(276, 67%, 86%)
CMYKcmyk(27.4%, 67.1%, 0%, 14.1%)
CIE-LABlab(48.41, 60.51, -60.53)
CIE-LCHlch(48.41, 85.59, 314.99°)
OKLaboklab(58.18% 0.1347 -0.1714)
OKLCHoklch(58.18% 0.218 308.2)
XYZxyz(29.3990, 17.1206, 68.7600)
Luminance0.1712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F48DB #84DB48
analogous
#5648DB #9F48DB #DB48CE
triadic
#9F48DB #DB9F48 #48DB9F
tetradic
#9F48DB #DB5648 #84DB48 #48CEDB
square
#9F48DB #DB5648 #84DB48 #48CEDB
split-complementary
#9F48DB #CEDB48 #48DB56
monochromatic
#5F1C8D #8126C0 #9F48DB #BA7BE5 #D5AEEF

Accessibility & contrast

On white

4.75
#9F48DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#9F48DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F48DB
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F48DB#FFFFFF#000000##FFFFFF
##9F48DB1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DF
Deuteranopia (green-blind)
#2874D8
Tritanopia (blue-blind)
#96688C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9f48db;
/* rgb */ color: rgb(159, 72, 219);
/* oklch */ color: oklch(58.2% 0.218 308.2);
Tailwind
colors: {
  custom: {
    50: '#c081e7',
    500: '#9f48db',
    950: '#000000',
  },
}
SCSS
$custom: #9f48db;
$custom-light: #c081e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f48db",
  "rgb": {
    "r": 159,
    "g": 72,
    "b": 219
  },
  "hsl": {
    "h": 275.51,
    "s": 67.123,
    "l": 57.059
  },
  "oklch": {
    "l": 0.58183,
    "c": 0.218,
    "h": 308.2
  },
  "luminance": 0.1712
}

Semantic roles & 50–950 ramp

primary
#9F48DB
secondary
#BADDA2
accent
#EA3E84
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9F48DB

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

Preview Lab → · Contrast checker → · Palette generator →

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