#9F229E#9F229E

#9F229E is a mid, highly saturated purple. Relative luminance 0.110; OKLCH L 50.6% C 0.207 H 328.5°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#9F229E
RGBrgb(159, 34, 158)
HSLhsl(300, 65%, 38%)
HSVhsv(300, 79%, 62%)
CMYKcmyk(0%, 78.6%, 0.6%, 37.6%)
CIE-LABlab(39.56, 63.01, -39.04)
CIE-LCHlch(39.56, 74.12, 328.22°)
OKLaboklab(50.64% 0.1764 -0.1082)
OKLCHoklch(50.64% 0.207 328.5)
XYZxyz(21.0414, 10.9852, 33.3532)
Luminance0.1098 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F229E #229F23
analogous
#61229F #9F229E #9F225F
triadic
#9F229E #9E9F22 #229E9F
tetradic
#9F229E #9F6122 #229F23 #225F9F
square
#9F229E #9F6122 #229F23 #225F9F
split-complementary
#9F229E #5F9F22 #229F61
monochromatic
#3A0C3A #6D176C #9F229E #D12DD0 #DD5FDC

Accessibility & contrast

On white

6.57
#9F229E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#9F229E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F229E
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F229E#FFFFFF#000000##FFFFFF
##9F229E1.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A1
Deuteranopia (green-blind)
#47639B
Tritanopia (blue-blind)
#A43760
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9f229e;
/* rgb */ color: rgb(159, 34, 158);
/* oklch */ color: oklch(50.6% 0.207 328.5);
Tailwind
colors: {
  custom: {
    50: '#bf6dbb',
    500: '#9f229e',
    950: '#000000',
  },
}
SCSS
$custom: #9f229e;
$custom-light: #bf6dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#9f229e",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 300.48,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.50642,
    "c": 0.20693,
    "h": 328.5
  },
  "luminance": 0.10984
}

Semantic roles & 50–950 ramp

primary
#9F229E
secondary
#5BC15C
accent
#E84140
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9F229E

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

Preview Lab → · Contrast checker → · Palette generator →

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