#9852C7#9852C7

#9852C7 is a mid, vivid violet. Relative luminance 0.168; OKLCH L 57.3% C 0.181 H 309.4°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#9852C7
RGBrgb(152, 82, 199)
HSLhsl(276, 51%, 55%)
HSVhsv(276, 59%, 78%)
CMYKcmyk(23.6%, 58.8%, 0%, 22%)
CIE-LABlab(48.05, 49.63, -49.70)
CIE-LCHlch(48.05, 70.24, 314.96°)
OKLaboklab(57.33% 0.1151 -0.1399)
OKLCHoklch(57.33% 0.181 309.4)
XYZxyz(26.2730, 16.8340, 55.8870)
Luminance0.1683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9852C7 #81C752
analogous
#5D52C7 #9852C7 #C752BC
triadic
#9852C7 #C79852 #52C798
tetradic
#9852C7 #C75D52 #81C752 #52BCC7
square
#9852C7 #C75D52 #81C752 #52BCC7
split-complementary
#9852C7 #BCC752 #52C75D
monochromatic
#572778 #7936A6 #9852C7 #B480D6 #CFAEE5

Accessibility & contrast

On white

4.81
#9852C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#9852C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9852C7
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9852C7#FFFFFF#000000##FFFFFF
##9852C71.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#266FCB
Deuteranopia (green-blind)
#4473C4
Tritanopia (blue-blind)
#926885
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9852c7;
/* rgb */ color: rgb(152, 82, 199);
/* oklch */ color: oklch(57.3% 0.181 309.4);
Tailwind
colors: {
  custom: {
    50: '#b986d8',
    500: '#9852c7',
    950: '#000000',
  },
}
SCSS
$custom: #9852c7;
$custom-light: #b986d8;
$custom-dark: #000000;
JSON
{
  "hex": "#9852c7",
  "rgb": {
    "r": 152,
    "g": 82,
    "b": 199
  },
  "hsl": {
    "h": 275.897,
    "s": 51.092,
    "l": 55.098
  },
  "oklch": {
    "l": 0.57333,
    "c": 0.18111,
    "h": 309.4
  },
  "luminance": 0.16834
}

Semantic roles & 50–950 ramp

primary
#9852C7
secondary
#B6D3A2
accent
#DB4D86
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#120B15
muted
#817C83

Preview Lab

Preview with #9852C7

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

Preview Lab → · Contrast checker → · Palette generator →

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