#9D2FD8#9D2FD8

#9D2FD8 is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 55.3% C 0.242 H 310.1°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#9D2FD8
RGBrgb(157, 47, 216)
HSLhsl(279, 68%, 52%)
HSVhsv(279, 78%, 85%)
CMYKcmyk(27.3%, 78.2%, 0%, 15.3%)
CIE-LABlab(44.46, 69.34, -65.23)
CIE-LCHlch(44.46, 95.20, 316.75°)
OKLaboklab(55.26% 0.1559 -0.1851)
OKLCHoklch(55.26% 0.242 310.1)
XYZxyz(27.3134, 14.1596, 66.2467)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2FD8 #6AD82F
analogous
#492FD8 #9D2FD8 #D82FBF
triadic
#9D2FD8 #D89D2F #2FD89D
tetradic
#9D2FD8 #D8492F #6AD82F #2FBFD8
square
#9D2FD8 #D8492F #6AD82F #2FBFD8
split-complementary
#9D2FD8 #BFD82F #2FD849
monochromatic
#551676 #7A20AA #9D2FD8 #B563E2 #CE96EB

Accessibility & contrast

On white

5.48
#9D2FD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#9D2FD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2FD8
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2FD8#FFFFFF#000000##FFFFFF
##9D2FD81.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DD
Deuteranopia (green-blind)
#006BD5
Tritanopia (blue-blind)
#955A84
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9d2fd8;
/* rgb */ color: rgb(157, 47, 216);
/* oklch */ color: oklch(55.3% 0.242 310.1);
Tailwind
colors: {
  custom: {
    50: '#bf74e5',
    500: '#9d2fd8',
    950: '#000000',
  },
}
SCSS
$custom: #9d2fd8;
$custom-light: #bf74e5;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2fd8",
  "rgb": {
    "r": 157,
    "g": 47,
    "b": 216
  },
  "hsl": {
    "h": 279.053,
    "s": 68.421,
    "l": 51.569
  },
  "oklch": {
    "l": 0.55261,
    "c": 0.24198,
    "h": 310.1
  },
  "luminance": 0.14159
}

Semantic roles & 50–950 ramp

primary
#9D2FD8
secondary
#A6D78C
accent
#EB3D7A
background
#FCF7FE
surface
#F8EDFC
border
#D1C8D5
text
#130916
muted
#827B84

Preview Lab

Preview with #9D2FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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