#9F26A2#9F26A2

#9F26A2 is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.2% C 0.206 H 327.0°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#9F26A2
RGBrgb(159, 38, 162)
HSLhsl(299, 62%, 39%)
HSVhsv(299, 77%, 64%)
CMYKcmyk(1.9%, 76.5%, 0%, 36.5%)
CIE-LABlab(40.19, 62.50, -40.43)
CIE-LCHlch(40.19, 74.44, 327.10°)
OKLaboklab(51.17% 0.173 -0.1123)
OKLCHoklch(51.17% 0.206 327)
XYZxyz(21.5124, 11.3673, 35.2365)
Luminance0.1137 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F26A2 #29A226
analogous
#6126A2 #9F26A2 #A22667
triadic
#9F26A2 #A29F26 #26A29F
tetradic
#9F26A2 #A26126 #29A226 #2667A2
square
#9F26A2 #A26126 #29A226 #2667A2
split-complementary
#9F26A2 #67A226 #26A261
monochromatic
#3E0F3F #6E1A70 #9F26A2 #CC35D0 #D967DB

Accessibility & contrast

On white

6.42
#9F26A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#9F26A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F26A2
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F26A2#FFFFFF#000000##FFFFFF
##9F26A21.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A5
Deuteranopia (green-blind)
#46649F
Tritanopia (blue-blind)
#A43B63
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9f26a2;
/* rgb */ color: rgb(159, 38, 162);
/* oklch */ color: oklch(51.2% 0.206 327.0);
Tailwind
colors: {
  custom: {
    50: '#bf6fbe',
    500: '#9f26a2',
    950: '#000000',
  },
}
SCSS
$custom: #9f26a2;
$custom-light: #bf6fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#9f26a2",
  "rgb": {
    "r": 159,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 298.548,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.51171,
    "c": 0.20621,
    "h": 327
  },
  "luminance": 0.11366
}

Semantic roles & 50–950 ramp

primary
#9F26A2
secondary
#65C163
accent
#E54347
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9F26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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