#9F48CB#9F48CB

#9F48CB is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.1% C 0.202 H 312.3°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#9F48CB
RGBrgb(159, 72, 203)
HSLhsl(280, 56%, 54%)
HSVhsv(280, 65%, 80%)
CMYKcmyk(21.7%, 64.5%, 0%, 20.4%)
CIE-LABlab(47.39, 57.04, -53.02)
CIE-LCHlch(47.39, 77.87, 317.09°)
OKLaboklab(57.12% 0.1359 -0.1493)
OKLCHoklch(57.12% 0.202 312.3)
XYZxyz(27.3930, 16.3182, 58.1950)
Luminance0.1632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F48CB #74CB48
analogous
#5E48CB #9F48CB #CB48B6
triadic
#9F48CB #CB9F48 #48CB9F
tetradic
#9F48CB #CB5E48 #74CB48 #48B6CB
square
#9F48CB #CB5E48 #74CB48 #48B6CB
split-complementary
#9F48CB #B6CB48 #48CB5E
monochromatic
#5A2277 #7E2FA6 #9F48CB #B878D9 #D1A7E6

Accessibility & contrast

On white

4.93
#9F48CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#9F48CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F48CB
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F48CB#FFFFFF#000000##FFFFFF
##9F48CB1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CCF
Deuteranopia (green-blind)
#3D72C8
Tritanopia (blue-blind)
#9A6283
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9f48cb;
/* rgb */ color: rgb(159, 72, 203);
/* oklch */ color: oklch(57.1% 0.202 312.3);
Tailwind
colors: {
  custom: {
    50: '#bf81db',
    500: '#9f48cb',
    950: '#000000',
  },
}
SCSS
$custom: #9f48cb;
$custom-light: #bf81db;
$custom-dark: #000000;
JSON
{
  "hex": "#9f48cb",
  "rgb": {
    "r": 159,
    "g": 72,
    "b": 203
  },
  "hsl": {
    "h": 279.847,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.57123,
    "c": 0.20192,
    "h": 312.3
  },
  "luminance": 0.16317
}

Semantic roles & 50–950 ramp

primary
#9F48CB
secondary
#AED39B
accent
#DF497B
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #9F48CB

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

Preview Lab → · Contrast checker → · Palette generator →

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