#9F229D#9F229D

#9F229D is a mid, highly saturated purple. Relative luminance 0.109; OKLCH L 50.6% C 0.206 H 328.8°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#9F229D
RGBrgb(159, 34, 157)
HSLhsl(301, 65%, 38%)
HSVhsv(301, 79%, 62%)
CMYKcmyk(0%, 78.6%, 1.3%, 37.6%)
CIE-LABlab(39.50, 62.84, -38.52)
CIE-LCHlch(39.50, 73.71, 328.49°)
OKLaboklab(50.58% 0.1764 -0.1067)
OKLCHoklch(50.58% 0.206 328.8)
XYZxyz(20.9557, 10.9509, 32.9018)
Luminance0.1095 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F229D #229F24
analogous
#62229F #9F229D #9F225E
triadic
#9F229D #9D9F22 #229D9F
tetradic
#9F229D #9F6222 #229F24 #225E9F
square
#9F229D #9F6222 #229F24 #225E9F
split-complementary
#9F229D #5E9F22 #229F62
monochromatic
#3A0C39 #6D176B #9F229D #D12DCF #DD5FDB

Accessibility & contrast

On white

6.58
#9F229D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#9F229D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F229D
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F229D#FFFFFF#000000##FFFFFF
##9F229D1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0253A0
Deuteranopia (green-blind)
#48639A
Tritanopia (blue-blind)
#A5365F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9f229d;
/* rgb */ color: rgb(159, 34, 157);
/* oklch */ color: oklch(50.6% 0.206 328.8);
Tailwind
colors: {
  custom: {
    50: '#bf6dba',
    500: '#9f229d',
    950: '#000000',
  },
}
SCSS
$custom: #9f229d;
$custom-light: #bf6dba;
$custom-dark: #000000;
JSON
{
  "hex": "#9f229d",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 300.96,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.50582,
    "c": 0.20618,
    "h": 328.8
  },
  "luminance": 0.10949
}

Semantic roles & 50–950 ramp

primary
#9F229D
secondary
#5BC15D
accent
#E84340
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9F229D

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

Preview Lab → · Contrast checker → · Palette generator →

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