#9F4CBC#9F4CBC

#9F4CBC is a mid, vivid purple. Relative luminance 0.162; OKLCH L 56.7% C 0.181 H 316.4°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#9F4CBC
RGBrgb(159, 76, 188)
HSLhsl(284, 46%, 52%)
HSVhsv(284, 60%, 74%)
CMYKcmyk(15.4%, 59.6%, 0%, 26.3%)
CIE-LABlab(47.20, 51.99, -44.64)
CIE-LCHlch(47.20, 68.52, 319.35°)
OKLaboklab(56.7% 0.1312 -0.1248)
OKLCHoklch(56.7% 0.181 316.4)
XYZxyz(25.9583, 16.1716, 49.3212)
Luminance0.1617 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F4CBC #69BC4C
analogous
#674CBC #9F4CBC #BC4CA1
triadic
#9F4CBC #BC9F4C #4CBC9F
tetradic
#9F4CBC #BC674C #69BC4C #4CA1BC
square
#9F4CBC #BC674C #69BC4C #4CA1BC
split-complementary
#9F4CBC #A1BC4C #4CBC67
monochromatic
#562767 #7C3794 #9F4CBC #B779CD #CFA5DD

Accessibility & contrast

On white

4.96
#9F4CBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#9F4CBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F4CBC
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F4CBC#FFFFFF#000000##FFFFFF
##9F4CBC1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D6BC0
Deuteranopia (green-blind)
#4D72B9
Tritanopia (blue-blind)
#9E5F7D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9f4cbc;
/* rgb */ color: rgb(159, 76, 188);
/* oklch */ color: oklch(56.7% 0.181 316.4);
Tailwind
colors: {
  custom: {
    50: '#be82d1',
    500: '#9f4cbc',
    950: '#000000',
  },
}
SCSS
$custom: #9f4cbc;
$custom-light: #be82d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f4cbc",
  "rgb": {
    "r": 159,
    "g": 76,
    "b": 188
  },
  "hsl": {
    "h": 284.464,
    "s": 45.528,
    "l": 51.765
  },
  "oklch": {
    "l": 0.567,
    "c": 0.18111,
    "h": 316.4
  },
  "luminance": 0.16171
}

Semantic roles & 50–950 ramp

primary
#9F4CBC
secondary
#A6CA99
accent
#D55374
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#120B14
muted
#817C82

Preview Lab

Preview with #9F4CBC

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

Preview Lab → · Contrast checker → · Palette generator →

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