#9857CB#9857CB

#9857CB is a mid, vivid violet. Relative luminance 0.178; OKLCH L 58.3% C 0.178 H 307.6°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#9857CB
RGBrgb(152, 87, 203)
HSLhsl(274, 53%, 57%)
HSVhsv(274, 57%, 80%)
CMYKcmyk(25.1%, 57.1%, 0%, 20.4%)
CIE-LABlab(49.26, 47.95, -50.07)
CIE-LCHlch(49.26, 69.33, 313.76°)
OKLaboklab(58.29% 0.1088 -0.141)
OKLCHoklch(58.29% 0.178 307.6)
XYZxyz(27.1344, 17.8039, 58.4954)
Luminance0.1780 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9857CB #8ACB57
analogous
#5E57CB #9857CB #CB57C4
triadic
#9857CB #CB9857 #57CB98
tetradic
#9857CB #CB5E57 #8ACB57 #57C4CB
square
#9857CB #CB5E57 #8ACB57 #57C4CB
split-complementary
#9857CB #C4CB57 #57CB5E
monochromatic
#592880 #7A36AF #9857CB #B586D9 #D1B4E8

Accessibility & contrast

On white

4.60
#9857CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#9857CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9857CB
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9857CB#FFFFFF#000000##FFFFFF
##9857CB1.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)
#2D73CF
Deuteranopia (green-blind)
#4676C8
Tritanopia (blue-blind)
#906D89
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9857cb;
/* rgb */ color: rgb(152, 87, 203);
/* oklch */ color: oklch(58.3% 0.178 307.6);
Tailwind
colors: {
  custom: {
    50: '#b989db',
    500: '#9857cb',
    950: '#000000',
  },
}
SCSS
$custom: #9857cb;
$custom-light: #b989db;
$custom-dark: #000000;
JSON
{
  "hex": "#9857cb",
  "rgb": {
    "r": 152,
    "g": 87,
    "b": 203
  },
  "hsl": {
    "h": 273.621,
    "s": 52.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.58291,
    "c": 0.17806,
    "h": 307.6
  },
  "luminance": 0.17804
}

Semantic roles & 50–950 ramp

primary
#9857CB
secondary
#BCD7A7
accent
#DC4C8B
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9857CB

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

Preview Lab → · Contrast checker → · Palette generator →

#9857CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva