#9F229B#9F229B

#9F229B is a mid, highly saturated purple. Relative luminance 0.109; OKLCH L 50.5% C 0.205 H 329.5°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#9F229B
RGBrgb(159, 34, 155)
HSLhsl(302, 65%, 38%)
HSVhsv(302, 79%, 62%)
CMYKcmyk(0%, 78.6%, 2.5%, 37.6%)
CIE-LABlab(39.38, 62.52, -37.50)
CIE-LCHlch(39.38, 72.91, 329.05°)
OKLaboklab(50.46% 0.1764 -0.1037)
OKLCHoklch(50.46% 0.205 329.5)
XYZxyz(20.7864, 10.8832, 32.0099)
Luminance0.1088 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F229B #229F26
analogous
#64229F #9F229B #9F225C
triadic
#9F229B #9B9F22 #229B9F
tetradic
#9F229B #9F6422 #229F26 #225C9F
square
#9F229B #9F6422 #229F26 #225C9F
split-complementary
#9F229B #5C9F22 #229F64
monochromatic
#3A0C39 #6D176A #9F229B #D12DCC #DD5FD9

Accessibility & contrast

On white

6.61
#9F229B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#9F229B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F229B
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F229B#FFFFFF#000000##FFFFFF
##9F229B1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08529E
Deuteranopia (green-blind)
#496298
Tritanopia (blue-blind)
#A5355E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9f229b;
/* rgb */ color: rgb(159, 34, 155);
/* oklch */ color: oklch(50.5% 0.205 329.5);
Tailwind
colors: {
  custom: {
    50: '#bf6db9',
    500: '#9f229b',
    950: '#000000',
  },
}
SCSS
$custom: #9f229b;
$custom-light: #bf6db9;
$custom-dark: #000000;
JSON
{
  "hex": "#9f229b",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 301.92,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.50464,
    "c": 0.20468,
    "h": 329.5
  },
  "luminance": 0.10882
}

Semantic roles & 50–950 ramp

primary
#9F229B
secondary
#5BC15F
accent
#E84540
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9F229B

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

Preview Lab → · Contrast checker → · Palette generator →

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