#9D238A#9D238A

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

Color values

HEX#9D238A
RGBrgb(157, 35, 138)
HSLhsl(309, 64%, 38%)
HSVhsv(309, 78%, 62%)
CMYKcmyk(0%, 77.7%, 12.1%, 38.4%)
CIE-LABlab(38.21, 59.16, -29.01)
CIE-LCHlch(38.21, 65.89, 333.88°)
OKLaboklab(49.26% 0.1731 -0.0793)
OKLCHoklch(49.26% 0.19 335.4)
XYZxyz(19.0934, 10.2069, 25.0044)
Luminance0.1021 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D238A #239D36
analogous
#73239D #9D238A #9D234D
triadic
#9D238A #8A9D23 #238A9D
tetradic
#9D238A #9D7323 #239D36 #234D9D
square
#9D238A #9D7323 #239D36 #234D9D
split-complementary
#9D238A #4D9D23 #239D73
monochromatic
#390D32 #6B185E #9D238A #CF2EB6 #DB5FC8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D238A#FFFFFF#000000##FFFFFF
##9D238A1.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)
#234E8D
Deuteranopia (green-blind)
#506087
Tritanopia (blue-blind)
#A52D55
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d238a;
/* rgb */ color: rgb(157, 35, 138);
/* oklch */ color: oklch(49.3% 0.190 335.4);
Tailwind
colors: {
  custom: {
    50: '#be6cac',
    500: '#9d238a',
    950: '#000000',
  },
}
SCSS
$custom: #9d238a;
$custom-light: #be6cac;
$custom-dark: #000000;
JSON
{
  "hex": "#9d238a",
  "rgb": {
    "r": 157,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 309.344,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.49261,
    "c": 0.19036,
    "h": 335.4
  },
  "luminance": 0.10205
}

Semantic roles & 50–950 ramp

primary
#9D238A
secondary
#5CC06B
accent
#E75B41
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9D238A

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

Preview Lab → · Contrast checker → · Palette generator →

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