#9D238B#9D238B

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

Color values

HEX#9D238B
RGBrgb(157, 35, 139)
HSLhsl(309, 64%, 38%)
HSVhsv(309, 78%, 62%)
CMYKcmyk(0%, 77.7%, 11.5%, 38.4%)
CIE-LABlab(38.26, 59.31, -29.54)
CIE-LCHlch(38.26, 66.26, 333.52°)
OKLaboklab(49.32% 0.1731 -0.0808)
OKLCHoklch(49.32% 0.191 335)
XYZxyz(19.1661, 10.2360, 25.3874)
Luminance0.1023 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D238B #239D35
analogous
#72239D #9D238B #9D234E
triadic
#9D238B #8B9D23 #238B9D
tetradic
#9D238B #9D7223 #239D35 #234E9D
square
#9D238B #9D7223 #239D35 #234E9D
split-complementary
#9D238B #4E9D23 #239D72
monochromatic
#390D32 #6B185F #9D238B #CF2EB7 #DB5FC9

Accessibility & contrast

On white

6.89
#9D238B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D238B
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D238B#FFFFFF#000000##FFFFFF
##9D238B1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224F8E
Deuteranopia (green-blind)
#506088
Tritanopia (blue-blind)
#A52E55
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d238b;
/* rgb */ color: rgb(157, 35, 139);
/* oklch */ color: oklch(49.3% 0.191 335.0);
Tailwind
colors: {
  custom: {
    50: '#be6cad',
    500: '#9d238b',
    950: '#000000',
  },
}
SCSS
$custom: #9d238b;
$custom-light: #be6cad;
$custom-dark: #000000;
JSON
{
  "hex": "#9d238b",
  "rgb": {
    "r": 157,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 308.852,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.49315,
    "c": 0.19106,
    "h": 335
  },
  "luminance": 0.10234
}

Semantic roles & 50–950 ramp

primary
#9D238B
secondary
#5CC06A
accent
#E75A41
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9D238B

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

Preview Lab → · Contrast checker → · Palette generator →

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