#9F28A8#9F28A8

#9F28A8 is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.7% C 0.209 H 324.9°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#9F28A8
RGBrgb(159, 40, 168)
HSLhsl(296, 62%, 41%)
HSVhsv(296, 76%, 66%)
CMYKcmyk(5.4%, 76.2%, 0%, 34.1%)
CIE-LABlab(40.76, 62.90, -43.11)
CIE-LCHlch(40.76, 76.26, 325.58°)
OKLaboklab(51.69% 0.171 -0.1201)
OKLCHoklch(51.69% 0.209 324.9)
XYZxyz(22.1242, 11.7171, 38.1345)
Luminance0.1172 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F28A8 #31A828
analogous
#5F28A8 #9F28A8 #A82871
triadic
#9F28A8 #A89F28 #28A89F
tetradic
#9F28A8 #A85F28 #31A828 #2871A8
square
#9F28A8 #A85F28 #31A828 #2871A8
split-complementary
#9F28A8 #71A828 #28A85F
monochromatic
#411045 #701C77 #9F28A8 #C63DD1 #D56EDC

Accessibility & contrast

On white

6.28
#9F28A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#9F28A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F28A8
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F28A8#FFFFFF#000000##FFFFFF
##9F28A81.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AB
Deuteranopia (green-blind)
#4365A5
Tritanopia (blue-blind)
#A23F67
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9f28a8;
/* rgb */ color: rgb(159, 40, 168);
/* oklch */ color: oklch(51.7% 0.209 324.9);
Tailwind
colors: {
  custom: {
    50: '#bf70c2',
    500: '#9f28a8',
    950: '#000000',
  },
}
SCSS
$custom: #9f28a8;
$custom-light: #bf70c2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f28a8",
  "rgb": {
    "r": 159,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 295.781,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.51691,
    "c": 0.20895,
    "h": 324.9
  },
  "luminance": 0.11716
}

Semantic roles & 50–950 ramp

primary
#9F28A8
secondary
#6FC369
accent
#E5434F
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #9F28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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