#9B238B#9B238B

#9B238B is a mid, vivid purple. Relative luminance 0.100; OKLCH L 49.0% C 0.190 H 334.3°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#9B238B
RGBrgb(155, 35, 139)
HSLhsl(308, 63%, 37%)
HSVhsv(308, 77%, 61%)
CMYKcmyk(0%, 77.4%, 10.3%, 39.2%)
CIE-LABlab(37.91, 58.85, -30.12)
CIE-LCHlch(37.91, 66.12, 332.89°)
OKLaboklab(48.99% 0.1711 -0.0825)
OKLCHoklch(48.99% 0.19 334.3)
XYZxyz(18.7790, 10.0364, 25.3693)
Luminance0.1003 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B238B #239B33
analogous
#6F239B #9B238B #9B234F
triadic
#9B238B #8B9B23 #238B9B
tetradic
#9B238B #9B6F23 #239B33 #234F9B
square
#9B238B #9B6F23 #239B33 #234F9B
split-complementary
#9B238B #4F9B23 #239B6F
monochromatic
#370C31 #69185E #9B238B #CD2EB8 #DB5ECA

Accessibility & contrast

On white

6.98
#9B238B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9B238B
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B238B#FFFFFF#000000##FFFFFF
##9B238B1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204E8E
Deuteranopia (green-blind)
#4E5F88
Tritanopia (blue-blind)
#A32F55
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9b238b;
/* rgb */ color: rgb(155, 35, 139);
/* oklch */ color: oklch(49.0% 0.190 334.3);
Tailwind
colors: {
  custom: {
    50: '#bc6cad',
    500: '#9b238b',
    950: '#000000',
  },
}
SCSS
$custom: #9b238b;
$custom-light: #bc6cad;
$custom-dark: #000000;
JSON
{
  "hex": "#9b238b",
  "rgb": {
    "r": 155,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 308,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.48993,
    "c": 0.18998,
    "h": 334.3
  },
  "luminance": 0.10035
}

Semantic roles & 50–950 ramp

primary
#9B238B
secondary
#5ABF68
accent
#E65842
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120810
muted
#817A7F

Preview Lab

Preview with #9B238B

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

Preview Lab → · Contrast checker → · Palette generator →

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