#9F56CB#9F56CB

#9F56CB is a mid, vivid violet. Relative luminance 0.183; OKLCH L 58.9% C 0.182 H 310.8°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#9F56CB
RGBrgb(159, 86, 203)
HSLhsl(277, 53%, 57%)
HSVhsv(277, 58%, 80%)
CMYKcmyk(21.7%, 57.6%, 0%, 20.4%)
CIE-LABlab(49.90, 50.21, -48.99)
CIE-LCHlch(49.90, 70.15, 315.70°)
OKLaboklab(58.95% 0.1189 -0.1376)
OKLCHoklch(58.95% 0.182 310.8)
XYZxyz(28.4034, 18.3389, 58.5318)
Luminance0.1834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F56CB #82CB56
analogous
#6556CB #9F56CB #CB56BD
triadic
#9F56CB #CB9F56 #56CB9F
tetradic
#9F56CB #CB6556 #82CB56 #56BDCB
square
#9F56CB #CB6556 #82CB56 #56BDCB
split-complementary
#9F56CB #BDCB56 #56CB65
monochromatic
#5E277F #8136AE #9F56CB #BA85D9 #D4B4E8

Accessibility & contrast

On white

4.50
#9F56CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#9F56CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F56CB
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F56CB#FFFFFF#000000##000000
##9F56CB1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F73CF
Deuteranopia (green-blind)
#4B78C8
Tritanopia (blue-blind)
#9A6B88
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9f56cb;
/* rgb */ color: rgb(159, 86, 203);
/* oklch */ color: oklch(58.9% 0.182 310.8);
Tailwind
colors: {
  custom: {
    50: '#be89db',
    500: '#9f56cb',
    950: '#000000',
  },
}
SCSS
$custom: #9f56cb;
$custom-light: #be89db;
$custom-dark: #000000;
JSON
{
  "hex": "#9f56cb",
  "rgb": {
    "r": 159,
    "g": 86,
    "b": 203
  },
  "hsl": {
    "h": 277.436,
    "s": 52.941,
    "l": 56.667
  },
  "oklch": {
    "l": 0.58949,
    "c": 0.18184,
    "h": 310.8
  },
  "luminance": 0.18338
}

Semantic roles & 50–950 ramp

primary
#9F56CB
secondary
#B8D6A6
accent
#DC4B82
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9F56CB

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

Preview Lab → · Contrast checker → · Palette generator →

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