#9852CE#9852CE

#9852CE is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.8% C 0.189 H 307.5°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#9852CE
RGBrgb(152, 82, 206)
HSLhsl(274, 56%, 56%)
HSVhsv(274, 60%, 81%)
CMYKcmyk(26.2%, 60.2%, 0%, 19.2%)
CIE-LABlab(48.47, 51.22, -53.06)
CIE-LCHlch(48.47, 73.75, 313.99°)
OKLaboklab(57.77% 0.115 -0.1497)
OKLCHoklch(57.77% 0.189 307.5)
XYZxyz(27.1045, 17.1666, 60.2662)
Luminance0.1717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9852CE #88CE52
analogous
#5A52CE #9852CE #CE52C6
triadic
#9852CE #CE9852 #52CE98
tetradic
#9852CE #CE5A52 #88CE52 #52C6CE
square
#9852CE #CE5A52 #88CE52 #52C6CE
split-complementary
#9852CE #C6CE52 #52CE5A
monochromatic
#592581 #7A32B1 #9852CE #B482DC #D1B1E9

Accessibility & contrast

On white

4.74
#9852CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#9852CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9852CE
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9852CE#FFFFFF#000000##FFFFFF
##9852CE1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A70D2
Deuteranopia (green-blind)
#3D74CB
Tritanopia (blue-blind)
#906A88
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9852ce;
/* rgb */ color: rgb(152, 82, 206);
/* oklch */ color: oklch(57.8% 0.189 307.5);
Tailwind
colors: {
  custom: {
    50: '#ba86de',
    500: '#9852ce',
    950: '#000000',
  },
}
SCSS
$custom: #9852ce;
$custom-light: #ba86de;
$custom-dark: #000000;
JSON
{
  "hex": "#9852ce",
  "rgb": {
    "r": 152,
    "g": 82,
    "b": 206
  },
  "hsl": {
    "h": 273.871,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57773,
    "c": 0.18879,
    "h": 307.5
  },
  "luminance": 0.17166
}

Semantic roles & 50–950 ramp

primary
#9852CE
secondary
#BBD7A4
accent
#DF498A
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9852CE

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

Preview Lab → · Contrast checker → · Palette generator →

#9852CE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva