#9F2FA5#9F2FA5

#9F2FA5 is a mid, vivid purple. Relative luminance 0.121; OKLCH L 52.1% C 0.199 H 325.8°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#9F2FA5
RGBrgb(159, 47, 165)
HSLhsl(297, 56%, 42%)
HSVhsv(297, 72%, 65%)
CMYKcmyk(3.6%, 71.5%, 0%, 35.3%)
CIE-LABlab(41.41, 60.03, -40.29)
CIE-LCHlch(41.41, 72.30, 326.13°)
OKLaboklab(52.1% 0.1646 -0.1119)
OKLCHoklch(52.1% 0.199 325.8)
XYZxyz(22.1057, 12.1220, 36.7655)
Luminance0.1212 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2FA5 #35A52F
analogous
#642FA5 #9F2FA5 #A52F70
triadic
#9F2FA5 #A59F2F #2FA59F
tetradic
#9F2FA5 #A5642F #35A52F #2F70A5
square
#9F2FA5 #A5642F #35A52F #2F70A5
split-complementary
#9F2FA5 #70A52F #2FA564
monochromatic
#431446 #712175 #9F2FA5 #C447CB #D376D8

Accessibility & contrast

On white

6.13
#9F2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9F2FA5
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2FA5#FFFFFF#000000##FFFFFF
##9F2FA51.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1159A8
Deuteranopia (green-blind)
#4966A2
Tritanopia (blue-blind)
#A34267
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9f2fa5;
/* rgb */ color: rgb(159, 47, 165);
/* oklch */ color: oklch(52.1% 0.199 325.8);
Tailwind
colors: {
  custom: {
    50: '#bf72c0',
    500: '#9f2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #9f2fa5;
$custom-light: #bf72c0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2fa5",
  "rgb": {
    "r": 159,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 296.949,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52096,
    "c": 0.19902,
    "h": 325.8
  },
  "luminance": 0.12121
}

Semantic roles & 50–950 ramp

primary
#9F2FA5
secondary
#74C070
accent
#DF4950
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #9F2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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