#9F238F#9F238F

#9F238F is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.9% C 0.195 H 334.1°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#9F238F
RGBrgb(159, 35, 143)
HSLhsl(308, 64%, 38%)
HSVhsv(308, 78%, 62%)
CMYKcmyk(0%, 78%, 10.1%, 37.6%)
CIE-LABlab(38.83, 60.37, -31.08)
CIE-LCHlch(38.83, 67.90, 332.76°)
OKLaboklab(49.85% 0.1754 -0.0852)
OKLCHoklch(49.85% 0.195 334.1)
XYZxyz(19.8572, 10.5579, 26.9733)
Luminance0.1056 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F238F #239F33
analogous
#71239F #9F238F #9F2351
triadic
#9F238F #8F9F23 #238F9F
tetradic
#9F238F #9F7123 #239F33 #23519F
square
#9F238F #9F7123 #239F33 #23519F
split-complementary
#9F238F #519F23 #239F71
monochromatic
#3B0D35 #6D1862 #9F238F #D12EBC #DC60CC

Accessibility & contrast

On white

6.75
#9F238F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#9F238F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F238F
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F238F#FFFFFF#000000##FFFFFF
##9F238F1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205092
Deuteranopia (green-blind)
#4F628C
Tritanopia (blue-blind)
#A73058
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f238f;
/* rgb */ color: rgb(159, 35, 143);
/* oklch */ color: oklch(49.9% 0.195 334.1);
Tailwind
colors: {
  custom: {
    50: '#bf6db0',
    500: '#9f238f',
    950: '#000000',
  },
}
SCSS
$custom: #9f238f;
$custom-light: #bf6db0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f238f",
  "rgb": {
    "r": 159,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 307.742,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.49853,
    "c": 0.19498,
    "h": 334.1
  },
  "luminance": 0.10556
}

Semantic roles & 50–950 ramp

primary
#9F238F
secondary
#5DC16A
accent
#E75641
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F238F

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

Preview Lab → · Contrast checker → · Palette generator →

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