#9B229B#9B229B

#9B229B is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 49.8% C 0.203 H 328.1°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#9B229B
RGBrgb(155, 34, 155)
HSLhsl(300, 64%, 37%)
HSVhsv(300, 78%, 61%)
CMYKcmyk(0%, 78.1%, 0%, 39.2%)
CIE-LABlab(38.69, 61.68, -38.64)
CIE-LCHlch(38.69, 72.79, 327.94°)
OKLaboklab(49.84% 0.1722 -0.1072)
OKLCHoklch(49.84% 0.203 328.1)
XYZxyz(20.0058, 10.4807, 31.9733)
Luminance0.1048 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B229B #229B22
analogous
#5F229B #9B229B #9B225F
triadic
#9B229B #9B9B22 #229B9B
tetradic
#9B229B #9B5F22 #229B22 #225F9B
square
#9B229B #9B5F22 #229B22 #225F9B
split-complementary
#9B229B #5F9B22 #229B5F
monochromatic
#370C37 #691769 #9B229B #CD2DCD #DB5CDB

Accessibility & contrast

On white

6.78
#9B229B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#9B229B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B229B
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B229B#FFFFFF#000000##FFFFFF
##9B229B1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00519E
Deuteranopia (green-blind)
#456098
Tritanopia (blue-blind)
#A0375E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9b229b;
/* rgb */ color: rgb(155, 34, 155);
/* oklch */ color: oklch(49.8% 0.203 328.1);
Tailwind
colors: {
  custom: {
    50: '#bc6cb9',
    500: '#9b229b',
    950: '#000000',
  },
}
SCSS
$custom: #9b229b;
$custom-light: #bc6cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#9b229b",
  "rgb": {
    "r": 155,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 300,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4984,
    "c": 0.20282,
    "h": 328.1
  },
  "luminance": 0.10479
}

Semantic roles & 50–950 ramp

primary
#9B229B
secondary
#59C059
accent
#E74141
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#120811
muted
#817A80

Preview Lab

Preview with #9B229B

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

Preview Lab → · Contrast checker → · Palette generator →

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