#9D238E#9D238E

#9D238E is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.5% C 0.193 H 333.8°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#9D238E
RGBrgb(157, 35, 142)
HSLhsl(307, 64%, 38%)
HSVhsv(307, 78%, 62%)
CMYKcmyk(0%, 77.7%, 9.6%, 38.4%)
CIE-LABlab(38.42, 59.77, -31.13)
CIE-LCHlch(38.42, 67.39, 332.48°)
OKLaboklab(49.48% 0.1733 -0.0854)
OKLCHoklch(49.48% 0.193 333.8)
XYZxyz(19.3883, 10.3249, 26.5577)
Luminance0.1032 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D238E #239D32
analogous
#6F239D #9D238E #9D2351
triadic
#9D238E #8E9D23 #238E9D
tetradic
#9D238E #9D6F23 #239D32 #23519D
square
#9D238E #9D6F23 #239D32 #23519D
split-complementary
#9D238E #519D23 #239D6F
monochromatic
#390D33 #6B1861 #9D238E #CF2EBB #DB5FCC

Accessibility & contrast

On white

6.85
#9D238E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#9D238E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D238E
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D238E#FFFFFF#000000##FFFFFF
##9D238E1.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4F91
Deuteranopia (green-blind)
#4E618B
Tritanopia (blue-blind)
#A43057
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d238e;
/* rgb */ color: rgb(157, 35, 142);
/* oklch */ color: oklch(49.5% 0.193 333.8);
Tailwind
colors: {
  custom: {
    50: '#be6caf',
    500: '#9d238e',
    950: '#000000',
  },
}
SCSS
$custom: #9d238e;
$custom-light: #be6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#9d238e",
  "rgb": {
    "r": 157,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 307.377,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.49478,
    "c": 0.1932,
    "h": 333.8
  },
  "luminance": 0.10323
}

Semantic roles & 50–950 ramp

primary
#9D238E
secondary
#5CC068
accent
#E75641
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9D238E

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

Preview Lab → · Contrast checker → · Palette generator →

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