#9D50C8#9D50C8

#9D50C8 is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.7% C 0.187 H 311.5°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#9D50C8
RGBrgb(157, 80, 200)
HSLhsl(279, 52%, 55%)
HSVhsv(279, 60%, 78%)
CMYKcmyk(21.5%, 60%, 0%, 21.6%)
CIE-LABlab(48.36, 52.08, -49.75)
CIE-LCHlch(48.36, 72.03, 316.31°)
OKLaboklab(57.71% 0.1239 -0.1399)
OKLCHoklch(57.71% 0.187 311.5)
XYZxyz(27.1967, 17.0762, 56.4957)
Luminance0.1708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D50C8 #7BC850
analogous
#6150C8 #9D50C8 #C850B7
triadic
#9D50C8 #C89D50 #50C89D
tetradic
#9D50C8 #C86150 #7BC850 #50B7C8
square
#9D50C8 #C86150 #7BC850 #50B7C8
split-complementary
#9D50C8 #B7C850 #50C861
monochromatic
#5A2678 #7E34A6 #9D50C8 #B77FD7 #D1ADE5

Accessibility & contrast

On white

4.76
#9D50C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#9D50C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D50C8
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D50C8#FFFFFF#000000##FFFFFF
##9D50C81.004.764.424.76
#FFFFFF4.761.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#246FCC
Deuteranopia (green-blind)
#4674C5
Tritanopia (blue-blind)
#986684
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9d50c8;
/* rgb */ color: rgb(157, 80, 200);
/* oklch */ color: oklch(57.7% 0.187 311.5);
Tailwind
colors: {
  custom: {
    50: '#bd85d9',
    500: '#9d50c8',
    950: '#000000',
  },
}
SCSS
$custom: #9d50c8;
$custom-light: #bd85d9;
$custom-dark: #000000;
JSON
{
  "hex": "#9d50c8",
  "rgb": {
    "r": 157,
    "g": 80,
    "b": 200
  },
  "hsl": {
    "h": 278.5,
    "s": 52.174,
    "l": 54.902
  },
  "oklch": {
    "l": 0.5771,
    "c": 0.18684,
    "h": 311.5
  },
  "luminance": 0.17076
}

Semantic roles & 50–950 ramp

primary
#9D50C8
secondary
#B3D3A1
accent
#DC4C80
background
#FBF8FD
surface
#F7EFFA
border
#D0CAD3
text
#120B15
muted
#817C83

Preview Lab

Preview with #9D50C8

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

Preview Lab → · Contrast checker → · Palette generator →

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