#9F258F#9F258F

#9F258F is a mid, vivid purple. Relative luminance 0.107; OKLCH L 50.0% C 0.193 H 334.1°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#9F258F
RGBrgb(159, 37, 143)
HSLhsl(308, 62%, 38%)
HSVhsv(308, 77%, 62%)
CMYKcmyk(0%, 76.7%, 10.1%, 37.6%)
CIE-LABlab(39.03, 59.77, -30.75)
CIE-LCHlch(39.03, 67.22, 332.77°)
OKLaboklab(50% 0.1736 -0.0843)
OKLCHoklch(50% 0.193 334.1)
XYZxyz(19.9178, 10.6790, 26.9935)
Luminance0.1068 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F258F #259F35
analogous
#72259F #9F258F #9F2552
triadic
#9F258F #8F9F25 #258F9F
tetradic
#9F258F #9F7225 #259F35 #25529F
square
#9F258F #9F7225 #259F35 #25529F
split-complementary
#9F258F #529F25 #259F72
monochromatic
#3C0E36 #6D1962 #9F258F #CF32BB #DB64CB

Accessibility & contrast

On white

6.70
#9F258F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#9F258F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F258F
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F258F#FFFFFF#000000##FFFFFF
##9F258F1.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225192
Deuteranopia (green-blind)
#50628C
Tritanopia (blue-blind)
#A73158
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9f258f;
/* rgb */ color: rgb(159, 37, 143);
/* oklch */ color: oklch(50.0% 0.193 334.1);
Tailwind
colors: {
  custom: {
    50: '#bf6db0',
    500: '#9f258f',
    950: '#000000',
  },
}
SCSS
$custom: #9f258f;
$custom-light: #bf6db0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f258f",
  "rgb": {
    "r": 159,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 307.869,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.50003,
    "c": 0.19299,
    "h": 334.1
  },
  "luminance": 0.10677
}

Semantic roles & 50–950 ramp

primary
#9F258F
secondary
#5FC06C
accent
#E55842
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F258F

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

Preview Lab → · Contrast checker → · Palette generator →

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