#9F229C#9F229C

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

Color values

HEX#9F229C
RGBrgb(159, 34, 156)
HSLhsl(301, 65%, 38%)
HSVhsv(301, 79%, 62%)
CMYKcmyk(0%, 78.6%, 1.9%, 37.6%)
CIE-LABlab(39.44, 62.68, -38.01)
CIE-LCHlch(39.44, 73.31, 328.77°)
OKLaboklab(50.52% 0.1764 -0.1052)
OKLCHoklch(50.52% 0.205 329.2)
XYZxyz(20.8707, 10.9169, 32.4540)
Luminance0.1091 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F229C #229F25
analogous
#63229F #9F229C #9F225D
triadic
#9F229C #9C9F22 #229C9F
tetradic
#9F229C #9F6322 #229F25 #225D9F
square
#9F229C #9F6322 #229F25 #225D9F
split-complementary
#9F229C #5D9F22 #229F63
monochromatic
#3A0C39 #6D176B #9F229C #D12DCD #DD5FDA

Accessibility & contrast

On white

6.60
#9F229C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9F229C
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F229C#FFFFFF#000000##FFFFFF
##9F229C1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05529F
Deuteranopia (green-blind)
#486399
Tritanopia (blue-blind)
#A5365F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9f229c;
/* rgb */ color: rgb(159, 34, 156);
/* oklch */ color: oklch(50.5% 0.205 329.2);
Tailwind
colors: {
  custom: {
    50: '#bf6dba',
    500: '#9f229c',
    950: '#000000',
  },
}
SCSS
$custom: #9f229c;
$custom-light: #bf6dba;
$custom-dark: #000000;
JSON
{
  "hex": "#9f229c",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 301.44,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.50523,
    "c": 0.20543,
    "h": 329.2
  },
  "luminance": 0.10915
}

Semantic roles & 50–950 ramp

primary
#9F229C
secondary
#5BC15E
accent
#E84440
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9F229C

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

Preview Lab → · Contrast checker → · Palette generator →

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