#9D248A#9D248A

#9D248A is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.3% C 0.189 H 335.4°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#9D248A
RGBrgb(157, 36, 138)
HSLhsl(309, 63%, 38%)
HSVhsv(309, 77%, 62%)
CMYKcmyk(0%, 77.1%, 12.1%, 38.4%)
CIE-LABlab(38.32, 58.86, -28.84)
CIE-LCHlch(38.32, 65.55, 333.89°)
OKLaboklab(49.34% 0.1722 -0.0788)
OKLCHoklch(49.34% 0.189 335.4)
XYZxyz(19.1232, 10.2666, 25.0143)
Luminance0.1027 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D248A #249D37
analogous
#73249D #9D248A #9D244E
triadic
#9D248A #8A9D24 #248A9D
tetradic
#9D248A #9D7324 #249D37 #244E9D
square
#9D248A #9D7324 #249D37 #244E9D
split-complementary
#9D248A #4E9D24 #249D73
monochromatic
#390D32 #6B195E #9D248A #CF2FB6 #DB61C8

Accessibility & contrast

On white

6.88
#9D248A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#9D248A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D248A
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D248A#FFFFFF#000000##FFFFFF
##9D248A1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244F8D
Deuteranopia (green-blind)
#506187
Tritanopia (blue-blind)
#A52E55
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d248a;
/* rgb */ color: rgb(157, 36, 138);
/* oklch */ color: oklch(49.3% 0.189 335.4);
Tailwind
colors: {
  custom: {
    50: '#be6dac',
    500: '#9d248a',
    950: '#000000',
  },
}
SCSS
$custom: #9d248a;
$custom-light: #be6dac;
$custom-dark: #000000;
JSON
{
  "hex": "#9d248a",
  "rgb": {
    "r": 157,
    "g": 36,
    "b": 138
  },
  "hsl": {
    "h": 309.421,
    "s": 62.694,
    "l": 37.843
  },
  "oklch": {
    "l": 0.49337,
    "c": 0.18935,
    "h": 335.4
  },
  "luminance": 0.10265
}

Semantic roles & 50–950 ramp

primary
#9D248A
secondary
#5DC06D
accent
#E65C42
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9D248A

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

Preview Lab → · Contrast checker → · Palette generator →

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