#9A2FAC#9A2FAC

#9A2FAC is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 51.8% C 0.203 H 321.5°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#9A2FAC
RGBrgb(154, 47, 172)
HSLhsl(291, 57%, 43%)
HSVhsv(291, 73%, 67%)
CMYKcmyk(10.5%, 72.7%, 0%, 32.5%)
CIE-LABlab(41.03, 60.19, -45.11)
CIE-LCHlch(41.03, 75.22, 323.15°)
OKLaboklab(51.8% 0.1585 -0.1262)
OKLCHoklch(51.8% 0.203 321.5)
XYZxyz(21.7885, 11.8828, 40.1677)
Luminance0.1188 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2FAC #41AC2F
analogous
#5B2FAC #9A2FAC #AC2F7F
triadic
#9A2FAC #AC9A2F #2FAC9A
tetradic
#9A2FAC #AC5B2F #41AC2F #2F7FAC
square
#9A2FAC #AC5B2F #41AC2F #2F7FAC
split-complementary
#9A2FAC #7FAC2F #2FAC5B
monochromatic
#44154C #6F227C #9A2FAC #BB4BCE #CD7BDB

Accessibility & contrast

On white

6.22
#9A2FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#9A2FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A2FAC
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2FAC#FFFFFF#000000##FFFFFF
##9A2FAC1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AF
Deuteranopia (green-blind)
#3F65A9
Tritanopia (blue-blind)
#9B466B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9a2fac;
/* rgb */ color: rgb(154, 47, 172);
/* oklch */ color: oklch(51.8% 0.203 321.5);
Tailwind
colors: {
  custom: {
    50: '#bb72c5',
    500: '#9a2fac',
    950: '#000000',
  },
}
SCSS
$custom: #9a2fac;
$custom-light: #bb72c5;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2fac",
  "rgb": {
    "r": 154,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 291.36,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.51801,
    "c": 0.20261,
    "h": 321.5
  },
  "luminance": 0.11882
}

Semantic roles & 50–950 ramp

primary
#9A2FAC
secondary
#7FC374
accent
#E0475D
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9A2FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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