#9F54CB#9F54CB

#9F54CB is a mid, vivid violet. Relative luminance 0.180; OKLCH L 58.7% C 0.185 H 311.1°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#9F54CB
RGBrgb(159, 84, 203)
HSLhsl(278, 53%, 56%)
HSVhsv(278, 59%, 80%)
CMYKcmyk(21.7%, 58.6%, 0%, 20.4%)
CIE-LABlab(49.53, 51.23, -49.60)
CIE-LCHlch(49.53, 71.30, 315.93°)
OKLaboklab(58.67% 0.1214 -0.1394)
OKLCHoklch(58.67% 0.185 311.1)
XYZxyz(28.2459, 18.0240, 58.4793)
Luminance0.1802 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F54CB #80CB54
analogous
#6454CB #9F54CB #CB54BC
triadic
#9F54CB #CB9F54 #54CB9F
tetradic
#9F54CB #CB6454 #80CB54 #54BCCB
square
#9F54CB #CB6454 #80CB54 #54BCCB
split-complementary
#9F54CB #BCCB54 #54CB64
monochromatic
#5E267E #8135AD #9F54CB #B983D9 #D4B2E8

Accessibility & contrast

On white

4.56
#9F54CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#9F54CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F54CB
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F54CB#FFFFFF#000000##000000
##9F54CB1.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B72CF
Deuteranopia (green-blind)
#4977C8
Tritanopia (blue-blind)
#9A6A88
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #9f54cb;
/* rgb */ color: rgb(159, 84, 203);
/* oklch */ color: oklch(58.7% 0.185 311.1);
Tailwind
colors: {
  custom: {
    50: '#be88db',
    500: '#9f54cb',
    950: '#000000',
  },
}
SCSS
$custom: #9f54cb;
$custom-light: #be88db;
$custom-dark: #000000;
JSON
{
  "hex": "#9f54cb",
  "rgb": {
    "r": 159,
    "g": 84,
    "b": 203
  },
  "hsl": {
    "h": 277.815,
    "s": 53.363,
    "l": 56.275
  },
  "oklch": {
    "l": 0.58672,
    "c": 0.18484,
    "h": 311.1
  },
  "luminance": 0.18023
}

Semantic roles & 50–950 ramp

primary
#9F54CB
secondary
#B7D6A5
accent
#DD4B81
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9F54CB

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

Preview Lab → · Contrast checker → · Palette generator →

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