#9F2EA8#9F2EA8

#9F2EA8 is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.2% C 0.203 H 324.8°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#9F2EA8
RGBrgb(159, 46, 168)
HSLhsl(296, 57%, 42%)
HSVhsv(296, 73%, 66%)
CMYKcmyk(5.4%, 72.6%, 0%, 34.1%)
CIE-LABlab(41.46, 60.91, -42.00)
CIE-LCHlch(41.46, 73.99, 325.41°)
OKLaboklab(52.19% 0.1655 -0.1169)
OKLCHoklch(52.19% 0.203 324.8)
XYZxyz(22.3424, 12.1535, 38.2073)
Luminance0.1215 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2EA8 #37A82E
analogous
#622EA8 #9F2EA8 #A82E74
triadic
#9F2EA8 #A89F2E #2EA89F
tetradic
#9F2EA8 #A8622E #37A82E #2E74A8
square
#9F2EA8 #A8622E #37A82E #2E74A8
split-complementary
#9F2EA8 #74A82E #2EA862
monochromatic
#441448 #722178 #9F2EA8 #C347CD #D277DA

Accessibility & contrast

On white

6.12
#9F2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#9F2EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2EA8
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2EA8#FFFFFF#000000##FFFFFF
##9F2EA81.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0459AB
Deuteranopia (green-blind)
#4666A5
Tritanopia (blue-blind)
#A24368
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9f2ea8;
/* rgb */ color: rgb(159, 46, 168);
/* oklch */ color: oklch(52.2% 0.203 324.8);
Tailwind
colors: {
  custom: {
    50: '#bf72c2',
    500: '#9f2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #9f2ea8;
$custom-light: #bf72c2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2ea8",
  "rgb": {
    "r": 159,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 295.574,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.52188,
    "c": 0.20262,
    "h": 324.8
  },
  "luminance": 0.12152
}

Semantic roles & 50–950 ramp

primary
#9F2EA8
secondary
#76C270
accent
#E04853
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130912
muted
#827B81

Preview Lab

Preview with #9F2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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