#9B238E#9B238E

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

Color values

HEX#9B238E
RGBrgb(155, 35, 142)
HSLhsl(307, 63%, 37%)
HSVhsv(307, 77%, 61%)
CMYKcmyk(0%, 77.4%, 8.4%, 39.2%)
CIE-LABlab(38.07, 59.31, -31.71)
CIE-LCHlch(38.07, 67.26, 331.87°)
OKLaboklab(49.16% 0.1713 -0.0871)
OKLCHoklch(49.16% 0.192 333)
XYZxyz(19.0012, 10.1253, 26.5396)
Luminance0.1012 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B238E #239B30
analogous
#6C239B #9B238E #9B2352
triadic
#9B238E #8E9B23 #238E9B
tetradic
#9B238E #9B6C23 #239B30 #23529B
square
#9B238E #9B6C23 #239B30 #23529B
split-complementary
#9B238E #529B23 #239B6C
monochromatic
#370C33 #691860 #9B238E #CD2EBC #DB5ECD

Accessibility & contrast

On white

6.94
#9B238E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9B238E
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B238E#FFFFFF#000000##FFFFFF
##9B238E1.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4F91
Deuteranopia (green-blind)
#4C608B
Tritanopia (blue-blind)
#A23057
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9b238e;
/* rgb */ color: rgb(155, 35, 142);
/* oklch */ color: oklch(49.2% 0.192 333.0);
Tailwind
colors: {
  custom: {
    50: '#bc6caf',
    500: '#9b238e',
    950: '#000000',
  },
}
SCSS
$custom: #9b238e;
$custom-light: #bc6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#9b238e",
  "rgb": {
    "r": 155,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 306.5,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.49158,
    "c": 0.19215,
    "h": 333
  },
  "luminance": 0.10124
}

Semantic roles & 50–950 ramp

primary
#9B238E
secondary
#5ABF65
accent
#E65342
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120810
muted
#817A7F

Preview Lab

Preview with #9B238E

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

Preview Lab → · Contrast checker → · Palette generator →

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