#9B229A#9B229A

#9B229A is a mid, highly saturated purple. Relative luminance 0.104; OKLCH L 49.8% C 0.202 H 328.5°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#9B229A
RGBrgb(155, 34, 154)
HSLhsl(300, 64%, 37%)
HSVhsv(300, 78%, 61%)
CMYKcmyk(0%, 78.1%, 0.6%, 39.2%)
CIE-LABlab(38.63, 61.52, -38.13)
CIE-LCHlch(38.63, 72.38, 328.21°)
OKLaboklab(49.78% 0.1722 -0.1057)
OKLCHoklch(49.78% 0.202 328.5)
XYZxyz(19.9221, 10.4472, 31.5328)
Luminance0.1045 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B229A #229B23
analogous
#60229B #9B229A #9B225E
triadic
#9B229A #9A9B22 #229A9B
tetradic
#9B229A #9B6022 #229B23 #225E9B
square
#9B229A #9B6022 #229B23 #225E9B
split-complementary
#9B229A #5E9B22 #229B60
monochromatic
#370C36 #691768 #9B229A #CD2DCC #DB5CDA

Accessibility & contrast

On white

6.80
#9B229A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#9B229A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B229A
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B229A#FFFFFF#000000##FFFFFF
##9B229A1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02519D
Deuteranopia (green-blind)
#466097
Tritanopia (blue-blind)
#A0365E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9b229a;
/* rgb */ color: rgb(155, 34, 154);
/* oklch */ color: oklch(49.8% 0.202 328.5);
Tailwind
colors: {
  custom: {
    50: '#bc6cb8',
    500: '#9b229a',
    950: '#000000',
  },
}
SCSS
$custom: #9b229a;
$custom-light: #bc6cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#9b229a",
  "rgb": {
    "r": 155,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 300.496,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4978,
    "c": 0.20205,
    "h": 328.5
  },
  "luminance": 0.10446
}

Semantic roles & 50–950 ramp

primary
#9B229A
secondary
#59C05A
accent
#E74241
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#120811
muted
#817A80

Preview Lab

Preview with #9B229A

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

Preview Lab → · Contrast checker → · Palette generator →

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