#9F228F#9F228F

#9F228F is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.8% C 0.196 H 334.1°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#9F228F
RGBrgb(159, 34, 143)
HSLhsl(308, 65%, 38%)
HSVhsv(308, 79%, 62%)
CMYKcmyk(0%, 78.6%, 10.1%, 37.6%)
CIE-LABlab(38.73, 60.66, -31.24)
CIE-LCHlch(38.73, 68.23, 332.75°)
OKLaboklab(49.78% 0.1762 -0.0856)
OKLCHoklch(49.78% 0.196 334.1)
XYZxyz(19.8282, 10.4999, 26.9637)
Luminance0.1050 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F228F #229F32
analogous
#70229F #9F228F #9F2250
triadic
#9F228F #8F9F22 #228F9F
tetradic
#9F228F #9F7022 #229F32 #22509F
square
#9F228F #9F7022 #229F32 #22509F
split-complementary
#9F228F #509F22 #229F70
monochromatic
#3A0C34 #6D1762 #9F228F #D12DBC #DD5FCD

Accessibility & contrast

On white

6.78
#9F228F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#9F228F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F228F
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F228F#FFFFFF#000000##FFFFFF
##9F228F1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5092
Deuteranopia (green-blind)
#4F628C
Tritanopia (blue-blind)
#A72F57
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f228f;
/* rgb */ color: rgb(159, 34, 143);
/* oklch */ color: oklch(49.8% 0.196 334.1);
Tailwind
colors: {
  custom: {
    50: '#bf6cb0',
    500: '#9f228f',
    950: '#000000',
  },
}
SCSS
$custom: #9f228f;
$custom-light: #bf6cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f228f",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 307.68,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.49781,
    "c": 0.19595,
    "h": 334.1
  },
  "luminance": 0.10498
}

Semantic roles & 50–950 ramp

primary
#9F228F
secondary
#5BC168
accent
#E85640
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F228F

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

Preview Lab → · Contrast checker → · Palette generator →

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