#9B2EA8#9B2EA8

#9B2EA8 is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.6% C 0.201 H 323.3°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#9B2EA8
RGBrgb(155, 46, 168)
HSLhsl(294, 57%, 42%)
HSVhsv(294, 73%, 66%)
CMYKcmyk(7.7%, 72.6%, 0%, 34.1%)
CIE-LABlab(40.82, 60.04, -43.06)
CIE-LCHlch(40.82, 73.88, 324.35°)
OKLaboklab(51.6% 0.1609 -0.1201)
OKLCHoklch(51.6% 0.201 323.3)
XYZxyz(21.5618, 11.7510, 38.1707)
Luminance0.1175 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2EA8 #3BA82E
analogous
#5E2EA8 #9B2EA8 #A82E78
triadic
#9B2EA8 #A89B2E #2EA89B
tetradic
#9B2EA8 #A85E2E #3BA82E #2E78A8
square
#9B2EA8 #A85E2E #3BA82E #2E78A8
split-complementary
#9B2EA8 #78A82E #2EA85E
monochromatic
#421448 #6F2178 #9B2EA8 #BE47CD #CF77DA

Accessibility & contrast

On white

6.27
#9B2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#9B2EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B2EA8
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2EA8#FFFFFF#000000##FFFFFF
##9B2EA81.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AB
Deuteranopia (green-blind)
#4264A5
Tritanopia (blue-blind)
#9D4468
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9b2ea8;
/* rgb */ color: rgb(155, 46, 168);
/* oklch */ color: oklch(51.6% 0.201 323.3);
Tailwind
colors: {
  custom: {
    50: '#bc72c2',
    500: '#9b2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #9b2ea8;
$custom-light: #bc72c2;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2ea8",
  "rgb": {
    "r": 155,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 293.607,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51603,
    "c": 0.2008,
    "h": 323.3
  },
  "luminance": 0.1175
}

Semantic roles & 50–950 ramp

primary
#9B2EA8
secondary
#79C270
accent
#E04858
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#120812
muted
#817B81

Preview Lab

Preview with #9B2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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