#9852BE#9852BE

#9852BE is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.8% C 0.171 H 312.1°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#9852BE
RGBrgb(152, 82, 190)
HSLhsl(279, 45%, 53%)
HSVhsv(279, 57%, 75%)
CMYKcmyk(20%, 56.8%, 0%, 25.5%)
CIE-LABlab(47.53, 47.62, -45.32)
CIE-LCHlch(47.53, 65.74, 316.42°)
OKLaboklab(56.79% 0.1148 -0.1271)
OKLCHoklch(56.79% 0.171 312.1)
XYZxyz(25.2588, 16.4283, 50.5456)
Luminance0.1643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9852BE #78BE52
analogous
#6252BE #9852BE #BE52AE
triadic
#9852BE #BE9852 #52BE98
tetradic
#9852BE #BE6252 #78BE52 #52AEBE
square
#9852BE #BE6252 #78BE52 #52AEBE
split-complementary
#9852BE #AEBE52 #52BE62
monochromatic
#55296D #783A99 #9852BE #B27ECF #CDABDF

Accessibility & contrast

On white

4.90
#9852BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9852BE
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9852BE#FFFFFF#000000##FFFFFF
##9852BE1.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#316DC2
Deuteranopia (green-blind)
#4B72BB
Tritanopia (blue-blind)
#946580
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9852be;
/* rgb */ color: rgb(152, 82, 190);
/* oklch */ color: oklch(56.8% 0.171 312.1);
Tailwind
colors: {
  custom: {
    50: '#b986d2',
    500: '#9852be',
    950: '#000000',
  },
}
SCSS
$custom: #9852be;
$custom-light: #b986d2;
$custom-dark: #000000;
JSON
{
  "hex": "#9852be",
  "rgb": {
    "r": 152,
    "g": 82,
    "b": 190
  },
  "hsl": {
    "h": 278.889,
    "s": 45.378,
    "l": 53.333
  },
  "oklch": {
    "l": 0.56786,
    "c": 0.17125,
    "h": 312.1
  },
  "luminance": 0.16428
}

Semantic roles & 50–950 ramp

primary
#9852BE
secondary
#AFCD9F
accent
#D55381
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#120B14
muted
#817C82

Preview Lab

Preview with #9852BE

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

Preview Lab → · Contrast checker → · Palette generator →

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