#9F2BA2#9F2BA2

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

Color values

HEX#9F2BA2
RGBrgb(159, 43, 162)
HSLhsl(298, 58%, 40%)
HSVhsv(298, 73%, 64%)
CMYKcmyk(1.9%, 73.5%, 0%, 36.5%)
CIE-LABlab(40.75, 60.90, -39.54)
CIE-LCHlch(40.75, 72.61, 327.01°)
OKLaboklab(51.57% 0.1685 -0.1097)
OKLCHoklch(51.57% 0.201 326.9)
XYZxyz(21.6832, 11.7088, 35.2934)
Luminance0.1171 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2BA2 #2EA22B
analogous
#632BA2 #9F2BA2 #A22B6A
triadic
#9F2BA2 #A29F2B #2BA29F
tetradic
#9F2BA2 #A2632B #2EA22B #2B6AA2
square
#9F2BA2 #A2632B #2EA22B #2B6AA2
split-complementary
#9F2BA2 #6AA22B #2BA263
monochromatic
#401141 #701E72 #9F2BA2 #C83ECC #D66FD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F2BA2#FFFFFF#000000##FFFFFF
##9F2BA21.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)
#0E57A5
Deuteranopia (green-blind)
#49659F
Tritanopia (blue-blind)
#A43E64
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9f2ba2;
/* rgb */ color: rgb(159, 43, 162);
/* oklch */ color: oklch(51.6% 0.201 326.9);
Tailwind
colors: {
  custom: {
    50: '#bf71be',
    500: '#9f2ba2',
    950: '#000000',
  },
}
SCSS
$custom: #9f2ba2;
$custom-light: #bf71be;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2ba2",
  "rgb": {
    "r": 159,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 298.487,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.51568,
    "c": 0.20107,
    "h": 326.9
  },
  "luminance": 0.11707
}

Semantic roles & 50–950 ramp

primary
#9F2BA2
secondary
#6BC069
accent
#E1474A
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9F2BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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