#9A2FB7#9A2FB7

#9A2FB7 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.5% C 0.212 H 318.0°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#9A2FB7
RGBrgb(154, 47, 183)
HSLhsl(287, 59%, 45%)
HSVhsv(287, 74%, 72%)
CMYKcmyk(15.8%, 74.3%, 0%, 28.2%)
CIE-LABlab(41.72, 62.26, -50.51)
CIE-LCHlch(41.72, 80.17, 320.95°)
OKLaboklab(52.52% 0.1576 -0.142)
OKLCHoklch(52.52% 0.212 318)
XYZxyz(22.8890, 12.3230, 45.9635)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2FB7 #4CB72F
analogous
#562FB7 #9A2FB7 #B72F90
triadic
#9A2FB7 #B79A2F #2FB79A
tetradic
#9A2FB7 #B7562F #4CB72F #2F90B7
square
#9A2FB7 #B7562F #4CB72F #2F90B7
split-complementary
#9A2FB7 #90B72F #2FB756
monochromatic
#481656 #712286 #9A2FB7 #B751D2 #CB82DF

Accessibility & contrast

On white

6.06
#9A2FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#9A2FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A2FB7
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2FB7#FFFFFF#000000##FFFFFF
##9A2FB71.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBB
Deuteranopia (green-blind)
#3566B4
Tritanopia (blue-blind)
#994B71
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9a2fb7;
/* rgb */ color: rgb(154, 47, 183);
/* oklch */ color: oklch(52.5% 0.212 318.0);
Tailwind
colors: {
  custom: {
    50: '#bc73cd',
    500: '#9a2fb7',
    950: '#000000',
  },
}
SCSS
$custom: #9a2fb7;
$custom-light: #bc73cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2fb7",
  "rgb": {
    "r": 154,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 287.206,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.52518,
    "c": 0.21209,
    "h": 318
  },
  "luminance": 0.12322
}

Semantic roles & 50–950 ramp

primary
#9A2FB7
secondary
#8BC87A
accent
#E24567
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#120913
muted
#817B82

Preview Lab

Preview with #9A2FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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