#9B228A#9B228A

#9B228A is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.9% C 0.190 H 334.6°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#9B228A
RGBrgb(155, 34, 138)
HSLhsl(308, 64%, 37%)
HSVhsv(308, 78%, 61%)
CMYKcmyk(0%, 78.1%, 11%, 39.2%)
CIE-LABlab(37.75, 59.00, -29.76)
CIE-LCHlch(37.75, 66.08, 333.24°)
OKLaboklab(48.86% 0.1719 -0.0815)
OKLCHoklch(48.86% 0.19 334.6)
XYZxyz(18.6773, 9.9493, 24.9766)
Luminance0.0995 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B228A #229B33
analogous
#70229B #9B228A #9B224D
triadic
#9B228A #8A9B22 #228A9B
tetradic
#9B228A #9B7022 #229B33 #224D9B
square
#9B228A #9B7022 #229B33 #224D9B
split-complementary
#9B228A #4D9B22 #229B70
monochromatic
#370C31 #69175D #9B228A #CD2DB7 #DB5CC9

Accessibility & contrast

On white

7.02
#9B228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#9B228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9B228A
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B228A#FFFFFF#000000##FFFFFF
##9B228A1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204E8D
Deuteranopia (green-blind)
#4E5F87
Tritanopia (blue-blind)
#A32D55
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9b228a;
/* rgb */ color: rgb(155, 34, 138);
/* oklch */ color: oklch(48.9% 0.190 334.6);
Tailwind
colors: {
  custom: {
    50: '#bc6cac',
    500: '#9b228a',
    950: '#000000',
  },
}
SCSS
$custom: #9b228a;
$custom-light: #bc6cac;
$custom-dark: #000000;
JSON
{
  "hex": "#9b228a",
  "rgb": {
    "r": 155,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 308.43,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.48864,
    "c": 0.19026,
    "h": 334.6
  },
  "luminance": 0.09948
}

Semantic roles & 50–950 ramp

primary
#9B228A
secondary
#59C067
accent
#E75841
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120810
muted
#817A7F

Preview Lab

Preview with #9B228A

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

Preview Lab → · Contrast checker → · Palette generator →

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