#9F48CC#9F48CC

#9F48CC is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.2% C 0.203 H 312.0°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#9F48CC
RGBrgb(159, 72, 204)
HSLhsl(280, 56%, 54%)
HSVhsv(280, 65%, 80%)
CMYKcmyk(22.1%, 64.7%, 0%, 20%)
CIE-LABlab(47.45, 57.26, -53.49)
CIE-LCHlch(47.45, 78.36, 316.95°)
OKLaboklab(57.19% 0.1359 -0.1507)
OKLCHoklch(57.19% 0.203 312)
XYZxyz(27.5126, 16.3660, 58.8247)
Luminance0.1636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F48CC #75CC48
analogous
#5D48CC #9F48CC #CC48B7
triadic
#9F48CC #CC9F48 #48CC9F
tetradic
#9F48CC #CC5D48 #75CC48 #48B7CC
square
#9F48CC #CC5D48 #75CC48 #48B7CC
split-complementary
#9F48CC #B7CC48 #48CC5D
monochromatic
#5B2178 #7F2FA8 #9F48CC #B878D9 #D1A8E7

Accessibility & contrast

On white

4.91
#9F48CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#9F48CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F48CC
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F48CC#FFFFFF#000000##FFFFFF
##9F48CC1.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9f48cc;
/* rgb */ color: rgb(159, 72, 204);
/* oklch */ color: oklch(57.2% 0.203 312.0);
Tailwind
colors: {
  custom: {
    50: '#bf81dc',
    500: '#9f48cc',
    950: '#000000',
  },
}
SCSS
$custom: #9f48cc;
$custom-light: #bf81dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9f48cc",
  "rgb": {
    "r": 159,
    "g": 72,
    "b": 204
  },
  "hsl": {
    "h": 279.545,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.57187,
    "c": 0.20292,
    "h": 312
  },
  "luminance": 0.16365
}

Semantic roles & 50–950 ramp

primary
#9F48CC
secondary
#AFD49C
accent
#E0487C
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #9F48CC

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

Preview Lab → · Contrast checker → · Palette generator →

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