#9852BF#9852BF

#9852BF is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.8% C 0.172 H 311.8°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#9852BF
RGBrgb(152, 82, 191)
HSLhsl(279, 46%, 54%)
HSVhsv(279, 57%, 75%)
CMYKcmyk(20.4%, 57.1%, 0%, 25.1%)
CIE-LABlab(47.59, 47.84, -45.81)
CIE-LCHlch(47.59, 66.24, 316.24°)
OKLaboklab(56.85% 0.1149 -0.1285)
OKLCHoklch(56.85% 0.172 311.8)
XYZxyz(25.3685, 16.4722, 51.1232)
Luminance0.1647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9852BF #79BF52
analogous
#6152BF #9852BF #BF52AF
triadic
#9852BF #BF9852 #52BF98
tetradic
#9852BF #BF6152 #79BF52 #52AFBF
square
#9852BF #BF6152 #79BF52 #52AFBF
split-complementary
#9852BF #AFBF52 #52BF61
monochromatic
#55296E #78399B #9852BF #B37FD0 #CDABE0

Accessibility & contrast

On white

4.89
#9852BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#9852BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9852BF
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9852BF#FFFFFF#000000##FFFFFF
##9852BF1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#306DC3
Deuteranopia (green-blind)
#4A72BC
Tritanopia (blue-blind)
#946581
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9852bf;
/* rgb */ color: rgb(152, 82, 191);
/* oklch */ color: oklch(56.8% 0.172 311.8);
Tailwind
colors: {
  custom: {
    50: '#b986d3',
    500: '#9852bf',
    950: '#000000',
  },
}
SCSS
$custom: #9852bf;
$custom-light: #b986d3;
$custom-dark: #000000;
JSON
{
  "hex": "#9852bf",
  "rgb": {
    "r": 152,
    "g": 82,
    "b": 191
  },
  "hsl": {
    "h": 278.532,
    "s": 45.992,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56846,
    "c": 0.17234,
    "h": 311.8
  },
  "luminance": 0.16472
}

Semantic roles & 50–950 ramp

primary
#9852BF
secondary
#B0CE9F
accent
#D65281
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#120B14
muted
#817C83

Preview Lab

Preview with #9852BF

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

Preview Lab → · Contrast checker → · Palette generator →

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