#9F26A5#9F26A5

#9F26A5 is a mid, highly saturated purple. Relative luminance 0.115; OKLCH L 51.4% C 0.209 H 326.0°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#9F26A5
RGBrgb(159, 38, 165)
HSLhsl(297, 63%, 40%)
HSVhsv(297, 77%, 65%)
CMYKcmyk(3.6%, 77%, 0%, 35.3%)
CIE-LABlab(40.37, 63.01, -41.94)
CIE-LCHlch(40.37, 75.69, 326.35°)
OKLaboklab(51.35% 0.1728 -0.1167)
OKLCHoklch(51.35% 0.209 326)
XYZxyz(21.7823, 11.4753, 36.6577)
Luminance0.1147 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F26A5 #2CA526
analogous
#5F26A5 #9F26A5 #A5266C
triadic
#9F26A5 #A59F26 #26A59F
tetradic
#9F26A5 #A55F26 #2CA526 #266CA5
square
#9F26A5 #A55F26 #2CA526 #266CA5
split-complementary
#9F26A5 #6CA526 #26A55F
monochromatic
#3F0F42 #6F1B73 #9F26A5 #CA37D1 #D769DC

Accessibility & contrast

On white

6.37
#9F26A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#9F26A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F26A5
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F26A5#FFFFFF#000000##FFFFFF
##9F26A51.006.373.296.37
#FFFFFF6.371.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A8
Deuteranopia (green-blind)
#4464A2
Tritanopia (blue-blind)
#A33D65
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9f26a5;
/* rgb */ color: rgb(159, 38, 165);
/* oklch */ color: oklch(51.4% 0.209 326.0);
Tailwind
colors: {
  custom: {
    50: '#bf6fc0',
    500: '#9f26a5',
    950: '#000000',
  },
}
SCSS
$custom: #9f26a5;
$custom-light: #bf6fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f26a5",
  "rgb": {
    "r": 159,
    "g": 38,
    "b": 165
  },
  "hsl": {
    "h": 297.165,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.51354,
    "c": 0.20855,
    "h": 326
  },
  "luminance": 0.11474
}

Semantic roles & 50–950 ramp

primary
#9F26A5
secondary
#69C364
accent
#E6424A
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9F26A5

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

Preview Lab → · Contrast checker → · Palette generator →

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