#9F50C8#9F50C8

#9F50C8 is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.9% C 0.188 H 312.4°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#9F50C8
RGBrgb(159, 80, 200)
HSLhsl(280, 52%, 55%)
HSVhsv(280, 60%, 78%)
CMYKcmyk(20.5%, 60%, 0%, 21.6%)
CIE-LABlab(48.61, 52.57, -49.33)
CIE-LCHlch(48.61, 72.09, 316.82°)
OKLaboklab(57.95% 0.1264 -0.1386)
OKLCHoklch(57.95% 0.188 312.4)
XYZxyz(27.5902, 17.2791, 56.5142)
Luminance0.1728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F50C8 #79C850
analogous
#6350C8 #9F50C8 #C850B5
triadic
#9F50C8 #C89F50 #50C89F
tetradic
#9F50C8 #C86350 #79C850 #50B5C8
square
#9F50C8 #C86350 #79C850 #50B5C8
split-complementary
#9F50C8 #B5C850 #50C863
monochromatic
#5C2678 #7F34A6 #9F50C8 #B97FD7 #D2ADE5

Accessibility & contrast

On white

4.71
#9F50C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#9F50C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F50C8
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F50C8#FFFFFF#000000##FFFFFF
##9F50C81.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#256FCC
Deuteranopia (green-blind)
#4875C5
Tritanopia (blue-blind)
#9B6684
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9f50c8;
/* rgb */ color: rgb(159, 80, 200);
/* oklch */ color: oklch(57.9% 0.188 312.4);
Tailwind
colors: {
  custom: {
    50: '#be85d9',
    500: '#9f50c8',
    950: '#000000',
  },
}
SCSS
$custom: #9f50c8;
$custom-light: #be85d9;
$custom-dark: #000000;
JSON
{
  "hex": "#9f50c8",
  "rgb": {
    "r": 159,
    "g": 80,
    "b": 200
  },
  "hsl": {
    "h": 279.5,
    "s": 52.174,
    "l": 54.902
  },
  "oklch": {
    "l": 0.57949,
    "c": 0.18757,
    "h": 312.4
  },
  "luminance": 0.17278
}

Semantic roles & 50–950 ramp

primary
#9F50C8
secondary
#B2D3A1
accent
#DC4C7D
background
#FCF8FD
surface
#F8EFFA
border
#D1CAD3
text
#120B15
muted
#817C83

Preview Lab

Preview with #9F50C8

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

Preview Lab → · Contrast checker → · Palette generator →

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