#9850D2#9850D2

#9850D2 is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.8% C 0.196 H 306.8°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#9850D2
RGBrgb(152, 80, 210)
HSLhsl(273, 59%, 57%)
HSVhsv(273, 62%, 82%)
CMYKcmyk(27.6%, 61.9%, 0%, 17.6%)
CIE-LABlab(48.34, 53.15, -55.55)
CIE-LCHlch(48.34, 76.88, 313.73°)
OKLaboklab(57.76% 0.1173 -0.157)
OKLCHoklch(57.76% 0.196 306.8)
XYZxyz(27.4480, 17.0662, 62.8084)
Luminance0.1707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9850D2 #8AD250
analogous
#5750D2 #9850D2 #D250CB
triadic
#9850D2 #D29850 #50D298
tetradic
#9850D2 #D25750 #8AD250 #50CBD2
square
#9850D2 #D25750 #8AD250 #50CBD2
split-complementary
#9850D2 #CBD250 #50D257
monochromatic
#592285 #7A2FB6 #9850D2 #B581DF #D1B1EB

Accessibility & contrast

On white

4.76
#9850D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#9850D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9850D2
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9850D2#FFFFFF#000000##FFFFFF
##9850D21.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0170D6
Deuteranopia (green-blind)
#3673CF
Tritanopia (blue-blind)
#8F6A8A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9850d2;
/* rgb */ color: rgb(152, 80, 210);
/* oklch */ color: oklch(57.8% 0.196 306.8);
Tailwind
colors: {
  custom: {
    50: '#ba85e0',
    500: '#9850d2',
    950: '#000000',
  },
}
SCSS
$custom: #9850d2;
$custom-light: #ba85e0;
$custom-dark: #000000;
JSON
{
  "hex": "#9850d2",
  "rgb": {
    "r": 152,
    "g": 80,
    "b": 210
  },
  "hsl": {
    "h": 273.231,
    "s": 59.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.57761,
    "c": 0.19601,
    "h": 306.8
  },
  "luminance": 0.17066
}

Semantic roles & 50–950 ramp

primary
#9850D2
secondary
#BCD9A4
accent
#E2468B
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9850D2

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

Preview Lab → · Contrast checker → · Palette generator →

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