#9D38B2#9D38B2

#9D38B2 is a mid, vivid purple. Relative luminance 0.132; OKLCH L 53.5% C 0.198 H 320.2°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#9D38B2
RGBrgb(157, 56, 178)
HSLhsl(290, 52%, 46%)
HSVhsv(290, 69%, 70%)
CMYKcmyk(11.8%, 68.5%, 0%, 30.2%)
CIE-LABlab(43.08, 58.51, -45.36)
CIE-LCHlch(43.08, 74.03, 322.21°)
OKLaboklab(53.48% 0.1525 -0.1269)
OKLCHoklch(53.48% 0.198 320.2)
XYZxyz(23.3537, 13.2120, 43.4309)
Luminance0.1321 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D38B2 #4DB238
analogous
#6038B2 #9D38B2 #B2388A
triadic
#9D38B2 #B29D38 #38B29D
tetradic
#9D38B2 #B26038 #4DB238 #388AB2
square
#9D38B2 #B26038 #4DB238 #388AB2
split-complementary
#9D38B2 #8AB238 #38B260
monochromatic
#4B1B55 #742983 #9D38B2 #B85CCC #CC8ADA

Accessibility & contrast

On white

5.77
#9D38B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#9D38B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D38B2
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D38B2#FFFFFF#000000##FFFFFF
##9D38B21.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#065FB6
Deuteranopia (green-blind)
#4369AF
Tritanopia (blue-blind)
#9E4E71
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9d38b2;
/* rgb */ color: rgb(157, 56, 178);
/* oklch */ color: oklch(53.5% 0.198 320.2);
Tailwind
colors: {
  custom: {
    50: '#bd77ca',
    500: '#9d38b2',
    950: '#000000',
  },
}
SCSS
$custom: #9d38b2;
$custom-light: #bd77ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9d38b2",
  "rgb": {
    "r": 157,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 289.672,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.53478,
    "c": 0.19838,
    "h": 320.2
  },
  "luminance": 0.13211
}

Semantic roles & 50–950 ramp

primary
#9D38B2
secondary
#8DC581
accent
#DC4C65
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9D38B2

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

Preview Lab → · Contrast checker → · Palette generator →

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