#9F46DB#9F46DB

#9F46DB is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 58.0% C 0.221 H 308.4°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#9F46DB
RGBrgb(159, 70, 219)
HSLhsl(276, 67%, 57%)
HSVhsv(276, 68%, 86%)
CMYKcmyk(27.4%, 68%, 0%, 14.1%)
CIE-LABlab(48.09, 61.40, -61.05)
CIE-LCHlch(48.09, 86.59, 315.16°)
OKLaboklab(57.95% 0.1369 -0.1729)
OKLCHoklch(57.95% 0.221 308.4)
XYZxyz(29.2718, 16.8662, 68.7176)
Luminance0.1687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F46DB #82DB46
analogous
#5546DB #9F46DB #DB46CD
triadic
#9F46DB #DB9F46 #46DB9F
tetradic
#9F46DB #DB5546 #82DB46 #46CDDB
square
#9F46DB #DB5546 #82DB46 #46CDDB
split-complementary
#9F46DB #CDDB46 #46DB55
monochromatic
#5E1B8B #8125BF #9F46DB #BA79E5 #D4ACEF

Accessibility & contrast

On white

4.80
#9F46DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#9F46DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F46DB
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F46DB#FFFFFF#000000##FFFFFF
##9F46DB1.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDF
Deuteranopia (green-blind)
#2573D8
Tritanopia (blue-blind)
#96678B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9f46db;
/* rgb */ color: rgb(159, 70, 219);
/* oklch */ color: oklch(58.0% 0.221 308.4);
Tailwind
colors: {
  custom: {
    50: '#c080e7',
    500: '#9f46db',
    950: '#000000',
  },
}
SCSS
$custom: #9f46db;
$custom-light: #c080e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f46db",
  "rgb": {
    "r": 159,
    "g": 70,
    "b": 219
  },
  "hsl": {
    "h": 275.839,
    "s": 67.421,
    "l": 56.667
  },
  "oklch": {
    "l": 0.57954,
    "c": 0.2205,
    "h": 308.4
  },
  "luminance": 0.16866
}

Semantic roles & 50–950 ramp

primary
#9F46DB
secondary
#B8DDA0
accent
#EA3D83
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9F46DB

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

Preview Lab → · Contrast checker → · Palette generator →

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