#9852CD#9852CD

#9852CD is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.7% C 0.188 H 307.8°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#9852CD
RGBrgb(152, 82, 205)
HSLhsl(274, 55%, 56%)
HSVhsv(274, 60%, 80%)
CMYKcmyk(25.9%, 60%, 0%, 19.6%)
CIE-LABlab(48.41, 50.99, -52.58)
CIE-LCHlch(48.41, 73.25, 314.12°)
OKLaboklab(57.71% 0.115 -0.1483)
OKLCHoklch(57.71% 0.188 307.8)
XYZxyz(26.9834, 17.1181, 59.6284)
Luminance0.1712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9852CD #87CD52
analogous
#5B52CD #9852CD #CD52C5
triadic
#9852CD #CD9852 #52CD98
tetradic
#9852CD #CD5B52 #87CD52 #52C5CD
square
#9852CD #CD5B52 #87CD52 #52C5CD
split-complementary
#9852CD #C5CD52 #52CD5B
monochromatic
#592580 #7A33AF #9852CD #B481DB #D1B1E8

Accessibility & contrast

On white

4.75
#9852CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#9852CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9852CD
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9852CD#FFFFFF#000000##FFFFFF
##9852CD1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9852cd;
/* rgb */ color: rgb(152, 82, 205);
/* oklch */ color: oklch(57.7% 0.188 307.8);
Tailwind
colors: {
  custom: {
    50: '#ba86dd',
    500: '#9852cd',
    950: '#000000',
  },
}
SCSS
$custom: #9852cd;
$custom-light: #ba86dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9852cd",
  "rgb": {
    "r": 152,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 274.146,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57709,
    "c": 0.18769,
    "h": 307.8
  },
  "luminance": 0.17118
}

Semantic roles & 50–950 ramp

primary
#9852CD
secondary
#BAD7A4
accent
#DE498A
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9852CD

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

Preview Lab → · Contrast checker → · Palette generator →

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