#9F229F#9F229F

#9F229F is a mid, highly saturated purple. Relative luminance 0.110; OKLCH L 50.7% C 0.208 H 328.1°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#9F229F
RGBrgb(159, 34, 159)
HSLhsl(300, 65%, 38%)
HSVhsv(300, 79%, 62%)
CMYKcmyk(0%, 78.6%, 0%, 37.6%)
CIE-LABlab(39.61, 63.17, -39.55)
CIE-LCHlch(39.61, 74.53, 327.95°)
OKLaboklab(50.7% 0.1763 -0.1097)
OKLCHoklch(50.7% 0.208 328.1)
XYZxyz(21.1279, 11.0198, 33.8084)
Luminance0.1102 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F229F #229F22
analogous
#60229F #9F229F #9F2260
triadic
#9F229F #9F9F22 #229F9F
tetradic
#9F229F #9F6022 #229F22 #22609F
square
#9F229F #9F6022 #229F22 #22609F
split-complementary
#9F229F #609F22 #229F60
monochromatic
#3A0C3A #6D176D #9F229F #D12DD1 #DD5FDD

Accessibility & contrast

On white

6.56
#9F229F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9F229F
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F229F#FFFFFF#000000##FFFFFF
##9F229F1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A2
Deuteranopia (green-blind)
#46639C
Tritanopia (blue-blind)
#A43860
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9f229f;
/* rgb */ color: rgb(159, 34, 159);
/* oklch */ color: oklch(50.7% 0.208 328.1);
Tailwind
colors: {
  custom: {
    50: '#bf6dbc',
    500: '#9f229f',
    950: '#000000',
  },
}
SCSS
$custom: #9f229f;
$custom-light: #bf6dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#9f229f",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 300,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.50702,
    "c": 0.20768,
    "h": 328.1
  },
  "luminance": 0.11018
}

Semantic roles & 50–950 ramp

primary
#9F229F
secondary
#5BC15B
accent
#E84040
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9F229F

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

Preview Lab → · Contrast checker → · Palette generator →

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