#9850CF#9850CF

#9850CF is a mid, vivid violet. Relative luminance 0.169; OKLCH L 57.6% C 0.193 H 307.5°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#9850CF
RGBrgb(152, 80, 207)
HSLhsl(274, 57%, 56%)
HSVhsv(274, 61%, 81%)
CMYKcmyk(26.6%, 61.4%, 0%, 18.8%)
CIE-LABlab(48.16, 52.46, -54.13)
CIE-LCHlch(48.16, 75.38, 314.10°)
OKLaboklab(57.57% 0.1174 -0.1529)
OKLCHoklch(57.57% 0.193 307.5)
XYZxyz(27.0777, 16.9181, 60.8584)
Luminance0.1692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9850CF #87CF50
analogous
#5950CF #9850CF #CF50C7
triadic
#9850CF #CF9850 #50CF98
tetradic
#9850CF #CF5950 #87CF50 #50C7CF
square
#9850CF #CF5950 #87CF50 #50C7CF
split-complementary
#9850CF #C7CF50 #50CF59
monochromatic
#592381 #7A31B1 #9850CF #B480DC #D1B0E9

Accessibility & contrast

On white

4.79
#9850CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#9850CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9850CF
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9850CF#FFFFFF#000000##FFFFFF
##9850CF1.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E70D3
Deuteranopia (green-blind)
#3A73CC
Tritanopia (blue-blind)
#8F6988
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9850cf;
/* rgb */ color: rgb(152, 80, 207);
/* oklch */ color: oklch(57.6% 0.193 307.5);
Tailwind
colors: {
  custom: {
    50: '#ba85de',
    500: '#9850cf',
    950: '#000000',
  },
}
SCSS
$custom: #9850cf;
$custom-light: #ba85de;
$custom-dark: #000000;
JSON
{
  "hex": "#9850cf",
  "rgb": {
    "r": 152,
    "g": 80,
    "b": 207
  },
  "hsl": {
    "h": 274.016,
    "s": 56.951,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57566,
    "c": 0.19275,
    "h": 307.5
  },
  "luminance": 0.16918
}

Semantic roles & 50–950 ramp

primary
#9850CF
secondary
#BAD8A3
accent
#E0488A
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9850CF

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

Preview Lab → · Contrast checker → · Palette generator →

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