#9F30A2#9F30A2

#9F30A2 is a mid, vivid purple. Relative luminance 0.121; OKLCH L 52.0% C 0.195 H 326.8°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#9F30A2
RGBrgb(159, 48, 162)
HSLhsl(298, 54%, 41%)
HSVhsv(298, 70%, 64%)
CMYKcmyk(1.9%, 70.4%, 0%, 36.5%)
CIE-LABlab(41.37, 59.15, -38.56)
CIE-LCHlch(41.37, 70.61, 326.90°)
OKLaboklab(52.01% 0.1636 -0.1069)
OKLCHoklch(52.01% 0.195 326.8)
XYZxyz(21.8762, 12.0950, 35.3577)
Luminance0.1209 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F30A2 #33A230
analogous
#6630A2 #9F30A2 #A2306C
triadic
#9F30A2 #A29F30 #30A29F
tetradic
#9F30A2 #A26630 #33A230 #306CA2
square
#9F30A2 #A26630 #33A230 #306CA2
split-complementary
#9F30A2 #6CA230 #30A266
monochromatic
#421444 #712273 #9F30A2 #C547C8 #D476D6

Accessibility & contrast

On white

6.14
#9F30A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#9F30A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F30A2
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F30A2#FFFFFF#000000##FFFFFF
##9F30A21.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1959A5
Deuteranopia (green-blind)
#4B669F
Tritanopia (blue-blind)
#A34166
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9f30a2;
/* rgb */ color: rgb(159, 48, 162);
/* oklch */ color: oklch(52.0% 0.195 326.8);
Tailwind
colors: {
  custom: {
    50: '#bf73be',
    500: '#9f30a2',
    950: '#000000',
  },
}
SCSS
$custom: #9f30a2;
$custom-light: #bf73be;
$custom-dark: #000000;
JSON
{
  "hex": "#9f30a2",
  "rgb": {
    "r": 159,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 298.421,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.5201,
    "c": 0.1954,
    "h": 326.8
  },
  "luminance": 0.12093
}

Semantic roles & 50–950 ramp

primary
#9F30A2
secondary
#71BE6F
accent
#DE4A4E
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #9F30A2

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

Preview Lab → · Contrast checker → · Palette generator →

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