#9B238D#9B238D

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

Color values

HEX#9B238D
RGBrgb(155, 35, 141)
HSLhsl(307, 63%, 37%)
HSVhsv(307, 77%, 61%)
CMYKcmyk(0%, 77.4%, 9%, 39.2%)
CIE-LABlab(38.01, 59.16, -31.19)
CIE-LCHlch(38.01, 66.88, 332.20°)
OKLaboklab(49.1% 0.1712 -0.0856)
OKLCHoklch(49.1% 0.191 333.4)
XYZxyz(18.9265, 10.0954, 26.1459)
Luminance0.1009 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B238D #239B31
analogous
#6D239B #9B238D #9B2351
triadic
#9B238D #8D9B23 #238D9B
tetradic
#9B238D #9B6D23 #239B31 #23519B
square
#9B238D #9B6D23 #239B31 #23519B
split-complementary
#9B238D #519B23 #239B6D
monochromatic
#370C32 #691860 #9B238D #CD2EBA #DB5ECC

Accessibility & contrast

On white

6.96
#9B238D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#9B238D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B238D
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B238D#FFFFFF#000000##FFFFFF
##9B238D1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4E90
Deuteranopia (green-blind)
#4D608A
Tritanopia (blue-blind)
#A23056
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9b238d;
/* rgb */ color: rgb(155, 35, 141);
/* oklch */ color: oklch(49.1% 0.191 333.4);
Tailwind
colors: {
  custom: {
    50: '#bc6caf',
    500: '#9b238d',
    950: '#000000',
  },
}
SCSS
$custom: #9b238d;
$custom-light: #bc6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#9b238d",
  "rgb": {
    "r": 155,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 307,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.49103,
    "c": 0.19142,
    "h": 333.4
  },
  "luminance": 0.10094
}

Semantic roles & 50–950 ramp

primary
#9B238D
secondary
#5ABF66
accent
#E65542
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120810
muted
#817A7F

Preview Lab

Preview with #9B238D

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

Preview Lab → · Contrast checker → · Palette generator →

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