#9857E7#9857E7

#9857E7 is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 60.1% C 0.210 H 301.1°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#9857E7
RGBrgb(152, 87, 231)
HSLhsl(267, 75%, 62%)
HSVhsv(267, 62%, 91%)
CMYKcmyk(34.2%, 62.3%, 0%, 9.4%)
CIE-LABlab(50.99, 54.59, -63.21)
CIE-LCHlch(50.99, 83.52, 310.82°)
OKLaboklab(60.11% 0.1081 -0.1795)
OKLCHoklch(60.11% 0.21 301.1)
XYZxyz(30.7774, 19.2611, 77.6821)
Luminance0.1926 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9857E7 #A6E757
analogous
#575EE7 #9857E7 #E057E7
triadic
#9857E7 #E79857 #57E798
tetradic
#9857E7 #E7575E #A6E757 #57E7E0
square
#9857E7 #E7575E #A6E757 #57E7E0
split-complementary
#9857E7 #E7E057 #5EE757
monochromatic
#5B18AB #7721DF #9857E7 #B98DEF #DAC2F6

Accessibility & contrast

On white

4.33
#9857E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#9857E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9857E7
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9857E7#FFFFFF#000000##000000
##9857E71.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EC
Deuteranopia (green-blind)
#2179E4
Tritanopia (blue-blind)
#877697
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9857e7;
/* rgb */ color: rgb(152, 87, 231);
/* oklch */ color: oklch(60.1% 0.210 301.1);
Tailwind
colors: {
  custom: {
    50: '#bb8aef',
    500: '#9857e7',
    950: '#000000',
  },
}
SCSS
$custom: #9857e7;
$custom-light: #bb8aef;
$custom-dark: #000000;
JSON
{
  "hex": "#9857e7",
  "rgb": {
    "r": 152,
    "g": 87,
    "b": 231
  },
  "hsl": {
    "h": 267.083,
    "s": 75,
    "l": 62.353
  },
  "oklch": {
    "l": 0.60109,
    "c": 0.20957,
    "h": 301.1
  },
  "luminance": 0.19261
}

Semantic roles & 50–950 ramp

primary
#9857E7
secondary
#CFE7B3
accent
#D70E7D
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9857E7

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

Preview Lab → · Contrast checker → · Palette generator →

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