#9858D7#9858D7

#9858D7 is a mid, vivid violet. Relative luminance 0.186; OKLCH L 59.2% C 0.190 H 304.4°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#9858D7
RGBrgb(152, 88, 215)
HSLhsl(270, 61%, 59%)
HSVhsv(270, 59%, 84%)
CMYKcmyk(29.3%, 59.1%, 0%, 15.7%)
CIE-LABlab(50.17, 50.23, -55.47)
CIE-LCHlch(50.17, 74.84, 312.16°)
OKLaboklab(59.19% 0.1076 -0.1568)
OKLCHoklch(59.19% 0.19 304.4)
XYZxyz(28.7017, 18.5613, 66.3474)
Luminance0.1856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9858D7 #97D758
analogous
#5958D7 #9858D7 #D758D7
triadic
#9858D7 #D79858 #58D798
tetradic
#9858D7 #D75958 #97D758 #58D7D7
square
#9858D7 #D75958 #97D758 #58D7D7
split-complementary
#9858D7 #D7D758 #58D759
monochromatic
#5B2392 #792FC3 #9858D7 #B689E3 #D5BBEF

Accessibility & contrast

On white

4.46
#9858D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#9858D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9858D7
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9858D7#FFFFFF#000000##000000
##9858D71.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C76DB
Deuteranopia (green-blind)
#3B77D4
Tritanopia (blue-blind)
#8D718F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9858d7;
/* rgb */ color: rgb(152, 88, 215);
/* oklch */ color: oklch(59.2% 0.190 304.4);
Tailwind
colors: {
  custom: {
    50: '#ba8ae4',
    500: '#9858d7',
    950: '#000000',
  },
}
SCSS
$custom: #9858d7;
$custom-light: #ba8ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#9858d7",
  "rgb": {
    "r": 152,
    "g": 88,
    "b": 215
  },
  "hsl": {
    "h": 270.236,
    "s": 61.353,
    "l": 59.412
  },
  "oklch": {
    "l": 0.59188,
    "c": 0.19016,
    "h": 304.4
  },
  "luminance": 0.18561
}

Semantic roles & 50–950 ramp

primary
#9858D7
secondary
#C5DEAD
accent
#E44393
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9858D7

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

Preview Lab → · Contrast checker → · Palette generator →

#9858D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva