#9B229E#9B229E

#9B229E is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.0% C 0.205 H 327.0°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#9B229E
RGBrgb(155, 34, 158)
HSLhsl(299, 65%, 38%)
HSVhsv(299, 78%, 62%)
CMYKcmyk(1.9%, 78.5%, 0%, 38%)
CIE-LABlab(38.87, 62.18, -40.17)
CIE-LCHlch(38.87, 74.03, 327.14°)
OKLaboklab(50.02% 0.1721 -0.1116)
OKLCHoklch(50.02% 0.205 327)
XYZxyz(20.2608, 10.5827, 33.3167)
Luminance0.1058 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B229E #259E22
analogous
#5D229E #9B229E #9E2263
triadic
#9B229E #9E9B22 #229E9B
tetradic
#9B229E #9E5D22 #259E22 #22639E
square
#9B229E #9E5D22 #259E22 #22639E
split-complementary
#9B229E #639E22 #229E5D
monochromatic
#380C39 #6A176C #9B229E #CC2DD0 #D95EDC

Accessibility & contrast

On white

6.74
#9B229E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#9B229E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B229E
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B229E#FFFFFF#000000##FFFFFF
##9B229E1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A1
Deuteranopia (green-blind)
#43619B
Tritanopia (blue-blind)
#A03860
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9b229e;
/* rgb */ color: rgb(155, 34, 158);
/* oklch */ color: oklch(50.0% 0.205 327.0);
Tailwind
colors: {
  custom: {
    50: '#bc6cbb',
    500: '#9b229e',
    950: '#000000',
  },
}
SCSS
$custom: #9b229e;
$custom-light: #bc6cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#9b229e",
  "rgb": {
    "r": 155,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 298.548,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.50023,
    "c": 0.20511,
    "h": 327
  },
  "luminance": 0.10581
}

Semantic roles & 50–950 ramp

primary
#9B229E
secondary
#5DC15B
accent
#E84044
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9B229E

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

Preview Lab → · Contrast checker → · Palette generator →

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