#9F258E#9F258E

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

Color values

HEX#9F258E
RGBrgb(159, 37, 142)
HSLhsl(308, 62%, 38%)
HSVhsv(308, 77%, 62%)
CMYKcmyk(0%, 76.7%, 10.7%, 37.6%)
CIE-LABlab(38.98, 59.62, -30.22)
CIE-LCHlch(38.98, 66.84, 333.12°)
OKLaboklab(49.95% 0.1736 -0.0827)
OKLCHoklch(49.95% 0.192 334.5)
XYZxyz(19.8423, 10.6488, 26.5963)
Luminance0.1065 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F258E #259F36
analogous
#73259F #9F258E #9F2551
triadic
#9F258E #8E9F25 #258E9F
tetradic
#9F258E #9F7325 #259F36 #25519F
square
#9F258E #9F7325 #259F36 #25519F
split-complementary
#9F258E #519F25 #259F73
monochromatic
#3C0E35 #6D1962 #9F258E #CF32B9 #DB64CA

Accessibility & contrast

On white

6.71
#9F258E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#9F258E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F258E
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F258E#FFFFFF#000000##FFFFFF
##9F258E1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235091
Deuteranopia (green-blind)
#51628B
Tritanopia (blue-blind)
#A73058
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9f258e;
/* rgb */ color: rgb(159, 37, 142);
/* oklch */ color: oklch(49.9% 0.192 334.5);
Tailwind
colors: {
  custom: {
    50: '#bf6daf',
    500: '#9f258e',
    950: '#000000',
  },
}
SCSS
$custom: #9f258e;
$custom-light: #bf6daf;
$custom-dark: #000000;
JSON
{
  "hex": "#9f258e",
  "rgb": {
    "r": 159,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 308.361,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.49949,
    "c": 0.19227,
    "h": 334.5
  },
  "luminance": 0.10647
}

Semantic roles & 50–950 ramp

primary
#9F258E
secondary
#5FC06D
accent
#E55942
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F258E

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

Preview Lab → · Contrast checker → · Palette generator →

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