#9D48CB#9D48CB

#9D48CB is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.9% C 0.201 H 311.5°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#9D48CB
RGBrgb(157, 72, 203)
HSLhsl(279, 56%, 54%)
HSVhsv(279, 65%, 80%)
CMYKcmyk(22.7%, 64.5%, 0%, 20.4%)
CIE-LABlab(47.13, 56.59, -53.45)
CIE-LCHlch(47.13, 77.84, 316.63°)
OKLaboklab(56.88% 0.1334 -0.1507)
OKLCHoklch(56.88% 0.201 311.5)
XYZxyz(26.9995, 16.1153, 58.1766)
Luminance0.1611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D48CB #76CB48
analogous
#5C48CB #9D48CB #CB48B8
triadic
#9D48CB #CB9D48 #48CB9D
tetradic
#9D48CB #CB5C48 #76CB48 #48B8CB
square
#9D48CB #CB5C48 #76CB48 #48B8CB
split-complementary
#9D48CB #B8CB48 #48CB5C
monochromatic
#592277 #7D2FA6 #9D48CB #B778D9 #D0A7E6

Accessibility & contrast

On white

4.97
#9D48CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#9D48CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D48CB
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D48CB#FFFFFF#000000##FFFFFF
##9D48CB1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CCF
Deuteranopia (green-blind)
#3B71C8
Tritanopia (blue-blind)
#976283
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9d48cb;
/* rgb */ color: rgb(157, 72, 203);
/* oklch */ color: oklch(56.9% 0.201 311.5);
Tailwind
colors: {
  custom: {
    50: '#be80db',
    500: '#9d48cb',
    950: '#000000',
  },
}
SCSS
$custom: #9d48cb;
$custom-light: #be80db;
$custom-dark: #000000;
JSON
{
  "hex": "#9d48cb",
  "rgb": {
    "r": 157,
    "g": 72,
    "b": 203
  },
  "hsl": {
    "h": 278.931,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.56876,
    "c": 0.20123,
    "h": 311.5
  },
  "luminance": 0.16115
}

Semantic roles & 50–950 ramp

primary
#9D48CB
secondary
#AFD39B
accent
#DF497E
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9D48CB

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

Preview Lab → · Contrast checker → · Palette generator →

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