#9850C7#9850C7

#9850C7 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 57.1% C 0.184 H 309.7°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#9850C7
RGBrgb(152, 80, 199)
HSLhsl(276, 52%, 55%)
HSVhsv(276, 60%, 78%)
CMYKcmyk(23.6%, 59.8%, 0%, 22%)
CIE-LABlab(47.67, 50.65, -50.31)
CIE-LCHlch(47.67, 71.39, 315.19°)
OKLaboklab(57.06% 0.1176 -0.1416)
OKLCHoklch(57.06% 0.184 309.7)
XYZxyz(26.1244, 16.5367, 55.8374)
Luminance0.1654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9850C7 #7FC750
analogous
#5D50C7 #9850C7 #C750BA
triadic
#9850C7 #C79850 #50C798
tetradic
#9850C7 #C75D50 #7FC750 #50BAC7
square
#9850C7 #C75D50 #7FC750 #50BAC7
split-complementary
#9850C7 #BAC750 #50C75D
monochromatic
#572677 #7935A5 #9850C7 #B37ED6 #CFADE5

Accessibility & contrast

On white

4.88
#9850C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#9850C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9850C7
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9850C7#FFFFFF#000000##FFFFFF
##9850C71.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#216ECB
Deuteranopia (green-blind)
#4272C4
Tritanopia (blue-blind)
#926784
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9850c7;
/* rgb */ color: rgb(152, 80, 199);
/* oklch */ color: oklch(57.1% 0.184 309.7);
Tailwind
colors: {
  custom: {
    50: '#ba85d9',
    500: '#9850c7',
    950: '#000000',
  },
}
SCSS
$custom: #9850c7;
$custom-light: #ba85d9;
$custom-dark: #000000;
JSON
{
  "hex": "#9850c7",
  "rgb": {
    "r": 152,
    "g": 80,
    "b": 199
  },
  "hsl": {
    "h": 276.303,
    "s": 51.515,
    "l": 54.706
  },
  "oklch": {
    "l": 0.57057,
    "c": 0.18406,
    "h": 309.7
  },
  "luminance": 0.16536
}

Semantic roles & 50–950 ramp

primary
#9850C7
secondary
#B4D2A0
accent
#DB4D85
background
#FBF8FD
surface
#F7EFFA
border
#D0CAD3
text
#120B15
muted
#817C83

Preview Lab

Preview with #9850C7

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

Preview Lab → · Contrast checker → · Palette generator →

#9850C7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva