#9F48CD#9F48CD

#9F48CD is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.3% C 0.204 H 311.8°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#9F48CD
RGBrgb(159, 72, 205)
HSLhsl(279, 57%, 54%)
HSVhsv(279, 65%, 80%)
CMYKcmyk(22.4%, 64.9%, 0%, 19.6%)
CIE-LABlab(47.51, 57.47, -53.97)
CIE-LCHlch(47.51, 78.84, 316.80°)
OKLaboklab(57.25% 0.1358 -0.1521)
OKLCHoklch(57.25% 0.204 311.8)
XYZxyz(27.6329, 16.4141, 59.4584)
Luminance0.1641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F48CD #76CD48
analogous
#5D48CD #9F48CD #CD48B9
triadic
#9F48CD #CD9F48 #48CD9F
tetradic
#9F48CD #CD5D48 #76CD48 #48B9CD
square
#9F48CD #CD5D48 #76CD48 #48B9CD
split-complementary
#9F48CD #B9CD48 #48CD5D
monochromatic
#5B2179 #7F2EA9 #9F48CD #B878DA #D1A8E7

Accessibility & contrast

On white

4.90
#9F48CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#9F48CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F48CD
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F48CD#FFFFFF#000000##FFFFFF
##9F48CD1.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD1
Deuteranopia (green-blind)
#3B72CA
Tritanopia (blue-blind)
#9A6284
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9f48cd;
/* rgb */ color: rgb(159, 72, 205);
/* oklch */ color: oklch(57.3% 0.204 311.8);
Tailwind
colors: {
  custom: {
    50: '#bf81dd',
    500: '#9f48cd',
    950: '#000000',
  },
}
SCSS
$custom: #9f48cd;
$custom-light: #bf81dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9f48cd",
  "rgb": {
    "r": 159,
    "g": 72,
    "b": 205
  },
  "hsl": {
    "h": 279.248,
    "s": 57.082,
    "l": 54.314
  },
  "oklch": {
    "l": 0.57252,
    "c": 0.20393,
    "h": 311.8
  },
  "luminance": 0.16413
}

Semantic roles & 50–950 ramp

primary
#9F48CD
secondary
#B0D59C
accent
#E0477C
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #9F48CD

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

Preview Lab → · Contrast checker → · Palette generator →

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