#9C238E#9C238E

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

Color values

HEX#9C238E
RGBrgb(156, 35, 142)
HSLhsl(307, 63%, 37%)
HSVhsv(307, 78%, 61%)
CMYKcmyk(0%, 77.6%, 9%, 38.8%)
CIE-LABlab(38.24, 59.54, -31.42)
CIE-LCHlch(38.24, 67.33, 332.18°)
OKLaboklab(49.32% 0.1723 -0.0862)
OKLCHoklch(49.32% 0.193 333.4)
XYZxyz(19.1940, 10.2246, 26.5486)
Luminance0.1022 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C238E #239C31
analogous
#6D239C #9C238E #9C2352
triadic
#9C238E #8E9C23 #238E9C
tetradic
#9C238E #9C6D23 #239C31 #23529C
square
#9C238E #9C6D23 #239C31 #23529C
split-complementary
#9C238E #529C23 #239C6D
monochromatic
#380D33 #6A1861 #9C238E #CE2EBC #DB5ECD

Accessibility & contrast

On white

6.90
#9C238E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9C238E
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C238E#FFFFFF#000000##FFFFFF
##9C238E1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4F91
Deuteranopia (green-blind)
#4D608B
Tritanopia (blue-blind)
#A33057
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9c238e;
/* rgb */ color: rgb(156, 35, 142);
/* oklch */ color: oklch(49.3% 0.193 333.4);
Tailwind
colors: {
  custom: {
    50: '#bd6caf',
    500: '#9c238e',
    950: '#000000',
  },
}
SCSS
$custom: #9c238e;
$custom-light: #bd6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#9c238e",
  "rgb": {
    "r": 156,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 306.942,
    "s": 63.351,
    "l": 37.451
  },
  "oklch": {
    "l": 0.49318,
    "c": 0.19267,
    "h": 333.4
  },
  "luminance": 0.10223
}

Semantic roles & 50–950 ramp

primary
#9C238E
secondary
#5BC067
accent
#E65541
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9C238E

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

Preview Lab → · Contrast checker → · Palette generator →

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