#9857E3#9857E3

#9857E3 is a mid, highly saturated violet. Relative luminance 0.190; OKLCH L 59.8% C 0.205 H 301.9°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#9857E3
RGBrgb(152, 87, 227)
HSLhsl(268, 71%, 62%)
HSVhsv(268, 62%, 89%)
CMYKcmyk(33%, 61.7%, 0%, 11%)
CIE-LABlab(50.73, 53.62, -61.37)
CIE-LCHlch(50.73, 81.50, 311.15°)
OKLaboklab(59.84% 0.1084 -0.1741)
OKLCHoklch(59.84% 0.205 301.9)
XYZxyz(30.2190, 19.0378, 74.7408)
Luminance0.1904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9857E3 #A2E357
analogous
#575CE3 #9857E3 #DE57E3
triadic
#9857E3 #E39857 #57E398
tetradic
#9857E3 #E3575C #A2E357 #57E3DE
square
#9857E3 #E3575C #A2E357 #57E3DE
split-complementary
#9857E3 #E3DE57 #5CE357
monochromatic
#5B1BA4 #7824D9 #9857E3 #B88BEC #D8C0F4

Accessibility & contrast

On white

4.37
#9857E3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#9857E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9857E3
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9857E3#FFFFFF#000000##000000
##9857E31.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E7
Deuteranopia (green-blind)
#2978E0
Tritanopia (blue-blind)
#897595
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9857e3;
/* rgb */ color: rgb(152, 87, 227);
/* oklch */ color: oklch(59.8% 0.205 301.9);
Tailwind
colors: {
  custom: {
    50: '#bb8aed',
    500: '#9857e3',
    950: '#000000',
  },
}
SCSS
$custom: #9857e3;
$custom-light: #bb8aed;
$custom-dark: #000000;
JSON
{
  "hex": "#9857e3",
  "rgb": {
    "r": 152,
    "g": 87,
    "b": 227
  },
  "hsl": {
    "h": 267.857,
    "s": 71.429,
    "l": 61.569
  },
  "oklch": {
    "l": 0.59838,
    "c": 0.20509,
    "h": 301.9
  },
  "luminance": 0.19038
}

Semantic roles & 50–950 ramp

primary
#9857E3
secondary
#CDE5B1
accent
#D3127A
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9857E3

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

Preview Lab → · Contrast checker → · Palette generator →

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