#9C238D#9C238D

#9C238D is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.3% C 0.192 H 333.8°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#9C238D
RGBrgb(156, 35, 141)
HSLhsl(307, 63%, 37%)
HSVhsv(307, 78%, 61%)
CMYKcmyk(0%, 77.6%, 9.6%, 38.8%)
CIE-LABlab(38.19, 59.39, -30.90)
CIE-LCHlch(38.19, 66.94, 332.51°)
OKLaboklab(49.26% 0.1722 -0.0847)
OKLCHoklch(49.26% 0.192 333.8)
XYZxyz(19.1192, 10.1947, 26.1550)
Luminance0.1019 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C238D #239C32
analogous
#6F239C #9C238D #9C2351
triadic
#9C238D #8D9C23 #238D9C
tetradic
#9C238D #9C6F23 #239C32 #23519C
square
#9C238D #9C6F23 #239C32 #23519C
split-complementary
#9C238D #519C23 #239C6F
monochromatic
#380D33 #6A1860 #9C238D #CE2EBA #DB5ECC

Accessibility & contrast

On white

6.91
#9C238D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#9C238D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C238D
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C238D#FFFFFF#000000##FFFFFF
##9C238D1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4F90
Deuteranopia (green-blind)
#4E608A
Tritanopia (blue-blind)
#A32F56
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9c238d;
/* rgb */ color: rgb(156, 35, 141);
/* oklch */ color: oklch(49.3% 0.192 333.8);
Tailwind
colors: {
  custom: {
    50: '#bd6caf',
    500: '#9c238d',
    950: '#000000',
  },
}
SCSS
$custom: #9c238d;
$custom-light: #bd6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#9c238d",
  "rgb": {
    "r": 156,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 307.438,
    "s": 63.351,
    "l": 37.451
  },
  "oklch": {
    "l": 0.49263,
    "c": 0.19195,
    "h": 333.8
  },
  "luminance": 0.10193
}

Semantic roles & 50–950 ramp

primary
#9C238D
secondary
#5BC068
accent
#E65641
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9C238D

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

Preview Lab → · Contrast checker → · Palette generator →

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