#9F28A2#9F28A2

#9F28A2 is a mid, highly saturated purple. Relative luminance 0.115; OKLCH L 51.3% C 0.204 H 327.0°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#9F28A2
RGBrgb(159, 40, 162)
HSLhsl(299, 60%, 40%)
HSVhsv(299, 75%, 64%)
CMYKcmyk(1.9%, 75.3%, 0%, 36.5%)
CIE-LABlab(40.41, 61.88, -40.08)
CIE-LCHlch(40.41, 73.73, 327.07°)
OKLaboklab(51.32% 0.1712 -0.1113)
OKLCHoklch(51.32% 0.204 327)
XYZxyz(21.5781, 11.4987, 35.2584)
Luminance0.1150 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F28A2 #2BA228
analogous
#6228A2 #9F28A2 #A22868
triadic
#9F28A2 #A29F28 #28A29F
tetradic
#9F28A2 #A26228 #2BA228 #2868A2
square
#9F28A2 #A26228 #2BA228 #2868A2
split-complementary
#9F28A2 #68A228 #28A262
monochromatic
#3F1040 #6F1C71 #9F28A2 #CA39CE #D76ADA

Accessibility & contrast

On white

6.36
#9F28A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#9F28A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F28A2
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F28A2#FFFFFF#000000##FFFFFF
##9F28A21.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0456A5
Deuteranopia (green-blind)
#47649F
Tritanopia (blue-blind)
#A43C64
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9f28a2;
/* rgb */ color: rgb(159, 40, 162);
/* oklch */ color: oklch(51.3% 0.204 327.0);
Tailwind
colors: {
  custom: {
    50: '#bf6fbe',
    500: '#9f28a2',
    950: '#000000',
  },
}
SCSS
$custom: #9f28a2;
$custom-light: #bf6fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#9f28a2",
  "rgb": {
    "r": 159,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 298.525,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51324,
    "c": 0.20422,
    "h": 327
  },
  "luminance": 0.11497
}

Semantic roles & 50–950 ramp

primary
#9F28A2
secondary
#67C165
accent
#E44448
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9F28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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