#9F4EA2#9F4EA2

#9F4EA2 is a mid, vivid purple. Relative luminance 0.154; OKLCH L 55.5% C 0.152 H 326.0°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#9F4EA2
RGBrgb(159, 78, 162)
HSLhsl(298, 35%, 47%)
HSVhsv(298, 52%, 64%)
CMYKcmyk(1.9%, 51.9%, 0%, 36.5%)
CIE-LABlab(46.22, 45.84, -30.91)
CIE-LCHlch(46.22, 55.29, 326.00°)
OKLaboklab(55.54% 0.1263 -0.0851)
OKLCHoklch(55.54% 0.152 326)
XYZxyz(23.5436, 15.4296, 35.9135)
Luminance0.1543 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F4EA2 #51A24E
analogous
#754EA2 #9F4EA2 #A24E7B
triadic
#9F4EA2 #A29F4E #4EA29F
tetradic
#9F4EA2 #A2754E #51A24E #4E7BA2
square
#9F4EA2 #A2754E #51A24E #4E7BA2
split-complementary
#9F4EA2 #7BA24E #4EA275
monochromatic
#4E264F #763A79 #9F4EA2 #B972BB #CD9BCF

Accessibility & contrast

On white

5.14
#9F4EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#9F4EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F4EA2
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F4EA2#FFFFFF#000000##FFFFFF
##9F4EA21.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4567A5
Deuteranopia (green-blind)
#5D71A0
Tritanopia (blue-blind)
#A35871
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9f4ea2;
/* rgb */ color: rgb(159, 78, 162);
/* oklch */ color: oklch(55.5% 0.152 326.0);
Tailwind
colors: {
  custom: {
    50: '#bd83be',
    500: '#9f4ea2',
    950: '#000000',
  },
}
SCSS
$custom: #9f4ea2;
$custom-light: #bd83be;
$custom-dark: #000000;
JSON
{
  "hex": "#9f4ea2",
  "rgb": {
    "r": 159,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 297.857,
    "s": 35,
    "l": 47.059
  },
  "oklch": {
    "l": 0.55541,
    "c": 0.15225,
    "h": 326
  },
  "luminance": 0.15428
}

Semantic roles & 50–950 ramp

primary
#9F4EA2
secondary
#92BC90
accent
#CB5D61
background
#FBF8FB
surface
#F7EFF6
border
#D0CAD0
text
#120B12
muted
#817C81

Preview Lab

Preview with #9F4EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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