#9A237B#9A237B

#9A237B is a mid, vivid pink. Relative luminance 0.095; OKLCH L 48.0% C 0.178 H 340.8°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#9A237B
RGBrgb(154, 35, 123)
HSLhsl(316, 63%, 37%)
HSVhsv(316, 77%, 60%)
CMYKcmyk(0%, 77.3%, 20.1%, 39.6%)
CIE-LABlab(36.94, 56.29, -21.75)
CIE-LCHlch(36.94, 60.34, 338.88°)
OKLaboklab(48% 0.1685 -0.0586)
OKLCHoklch(48% 0.178 340.8)
XYZxyz(17.5032, 9.5039, 19.6477)
Luminance0.0950 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A237B #239A42
analogous
#7E239A #9A237B #9A2340
triadic
#9A237B #7B9A23 #237B9A
tetradic
#9A237B #9A7E23 #239A42 #23409A
square
#9A237B #9A7E23 #239A42 #23409A
split-complementary
#9A237B #409A23 #239A7E
monochromatic
#360C2B #681853 #9A237B #CC2EA3 #DA5DBA

Accessibility & contrast

On white

7.24
#9A237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#9A237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A237B
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A237B#FFFFFF#000000##FFFFFF
##9A237B1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4B7D
Deuteranopia (green-blind)
#545E78
Tritanopia (blue-blind)
#A4264D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9a237b;
/* rgb */ color: rgb(154, 35, 123);
/* oklch */ color: oklch(48.0% 0.178 340.8);
Tailwind
colors: {
  custom: {
    50: '#bc6ba1',
    500: '#9a237b',
    950: '#000000',
  },
}
SCSS
$custom: #9a237b;
$custom-light: #bc6ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#9a237b",
  "rgb": {
    "r": 154,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 315.63,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.48003,
    "c": 0.1784,
    "h": 340.8
  },
  "luminance": 0.09502
}

Semantic roles & 50–950 ramp

primary
#9A237B
secondary
#5ABF74
accent
#E66D42
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#12070F
muted
#817A7E

Preview Lab

Preview with #9A237B

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

Preview Lab → · Contrast checker → · Palette generator →

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