#9B228E#9B228E

#9B228E is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.1% C 0.193 H 333.0°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#9B228E
RGBrgb(155, 34, 142)
HSLhsl(306, 64%, 37%)
HSVhsv(306, 78%, 61%)
CMYKcmyk(0%, 78.1%, 8.4%, 39.2%)
CIE-LABlab(37.96, 59.61, -31.88)
CIE-LCHlch(37.96, 67.60, 331.86°)
OKLaboklab(49.08% 0.1721 -0.0876)
OKLCHoklch(49.08% 0.193 333)
XYZxyz(18.9722, 10.0672, 26.5299)
Luminance0.1007 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B228E #229B2F
analogous
#6B229B #9B228E #9B2252
triadic
#9B228E #8E9B22 #228E9B
tetradic
#9B228E #9B6B22 #229B2F #22529B
square
#9B228E #9B6B22 #229B2F #22529B
split-complementary
#9B228E #529B22 #229B6B
monochromatic
#370C32 #691760 #9B228E #CD2DBC #DB5CCE

Accessibility & contrast

On white

6.97
#9B228E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#9B228E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B228E
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B228E#FFFFFF#000000##FFFFFF
##9B228E1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4E91
Deuteranopia (green-blind)
#4C5F8B
Tritanopia (blue-blind)
#A23057
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9b228e;
/* rgb */ color: rgb(155, 34, 142);
/* oklch */ color: oklch(49.1% 0.193 333.0);
Tailwind
colors: {
  custom: {
    50: '#bc6caf',
    500: '#9b228e',
    950: '#000000',
  },
}
SCSS
$custom: #9b228e;
$custom-light: #bc6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#9b228e",
  "rgb": {
    "r": 155,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 306.446,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.49084,
    "c": 0.19313,
    "h": 333
  },
  "luminance": 0.10066
}

Semantic roles & 50–950 ramp

primary
#9B228E
secondary
#59C064
accent
#E75341
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120810
muted
#817A7F

Preview Lab

Preview with #9B228E

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

Preview Lab → · Contrast checker → · Palette generator →

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