#9852DB#9852DB

#9852DB is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.6% C 0.203 H 304.3°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#9852DB
RGBrgb(152, 82, 219)
HSLhsl(271, 66%, 59%)
HSVhsv(271, 63%, 86%)
CMYKcmyk(30.6%, 62.6%, 0%, 14.1%)
CIE-LABlab(49.28, 54.24, -59.17)
CIE-LCHlch(49.28, 80.27, 312.51°)
OKLaboklab(58.62% 0.1146 -0.1677)
OKLCHoklch(58.62% 0.203 304.3)
XYZxyz(28.7495, 17.8246, 68.9300)
Luminance0.1782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9852DB #95DB52
analogous
#5452DB #9852DB #DB52D9
triadic
#9852DB #DB9852 #52DB98
tetradic
#9852DB #DB5452 #95DB52 #52D9DB
square
#9852DB #DB5452 #95DB52 #52D9DB
split-complementary
#9852DB #D9DB52 #52DB54
monochromatic
#5B1F94 #7A29C6 #9852DB #B685E6 #D4B7F0

Accessibility & contrast

On white

4.60
#9852DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#9852DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9852DB
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9852DB#FFFFFF#000000##FFFFFF
##9852DB1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DF
Deuteranopia (green-blind)
#2D75D8
Tritanopia (blue-blind)
#8C6F8F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9852db;
/* rgb */ color: rgb(152, 82, 219);
/* oklch */ color: oklch(58.6% 0.203 304.3);
Tailwind
colors: {
  custom: {
    50: '#bb86e7',
    500: '#9852db',
    950: '#000000',
  },
}
SCSS
$custom: #9852db;
$custom-light: #bb86e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9852db",
  "rgb": {
    "r": 152,
    "g": 82,
    "b": 219
  },
  "hsl": {
    "h": 270.657,
    "s": 65.55,
    "l": 59.02
  },
  "oklch": {
    "l": 0.58624,
    "c": 0.20306,
    "h": 304.3
  },
  "luminance": 0.17824
}

Semantic roles & 50–950 ramp

primary
#9852DB
secondary
#C4DFAA
accent
#E93F92
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9852DB

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

Preview Lab → · Contrast checker → · Palette generator →

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