#9F36DB#9F36DB

#9F36DB is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 56.3% C 0.238 H 309.6°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#9F36DB
RGBrgb(159, 54, 219)
HSLhsl(278, 70%, 54%)
HSVhsv(278, 75%, 86%)
CMYKcmyk(27.4%, 75.3%, 0%, 14.1%)
CIE-LABlab(45.80, 67.88, -64.75)
CIE-LCHlch(45.80, 93.81, 316.35°)
OKLaboklab(56.33% 0.1521 -0.1837)
OKLCHoklch(56.33% 0.239 309.6)
XYZxyz(28.4009, 15.1243, 68.4272)
Luminance0.1512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F36DB #72DB36
analogous
#4C36DB #9F36DB #DB36C4
triadic
#9F36DB #DB9F36 #36DB9F
tetradic
#9F36DB #DB4C36 #72DB36 #36C4DB
square
#9F36DB #DB4C36 #72DB36 #36C4DB
split-complementary
#9F36DB #C4DB36 #36DB4C
monochromatic
#5A1780 #7E20B4 #9F36DB #B86AE4 #D19EEE

Accessibility & contrast

On white

5.22
#9F36DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#9F36DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F36DB
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F36DB#FFFFFF#000000##FFFFFF
##9F36DB1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E0
Deuteranopia (green-blind)
#006ED8
Tritanopia (blue-blind)
#965E87
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9f36db;
/* rgb */ color: rgb(159, 54, 219);
/* oklch */ color: oklch(56.3% 0.238 309.6);
Tailwind
colors: {
  custom: {
    50: '#c178e7',
    500: '#9f36db',
    950: '#000000',
  },
}
SCSS
$custom: #9f36db;
$custom-light: #c178e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f36db",
  "rgb": {
    "r": 159,
    "g": 54,
    "b": 219
  },
  "hsl": {
    "h": 278.182,
    "s": 69.62,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56331,
    "c": 0.2385,
    "h": 309.6
  },
  "luminance": 0.15124
}

Semantic roles & 50–950 ramp

primary
#9F36DB
secondary
#ADDA93
accent
#EC3B7C
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9F36DB

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

Preview Lab → · Contrast checker → · Palette generator →

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