#9858DB#9858DB

#9858DB is a mid, vivid violet. Relative luminance 0.188; OKLCH L 59.4% C 0.195 H 303.5°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#9858DB
RGBrgb(152, 88, 219)
HSLhsl(269, 65%, 60%)
HSVhsv(269, 60%, 86%)
CMYKcmyk(30.6%, 59.8%, 0%, 14.1%)
CIE-LABlab(50.42, 51.19, -57.35)
CIE-LCHlch(50.42, 76.87, 311.75°)
OKLaboklab(59.45% 0.1075 -0.1623)
OKLCHoklch(59.45% 0.195 303.5)
XYZxyz(29.2219, 18.7694, 69.0875)
Luminance0.1877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9858DB #9BDB58
analogous
#5859DB #9858DB #D958DB
triadic
#9858DB #DB9858 #58DB98
tetradic
#9858DB #DB5859 #9BDB58 #58DBD9
square
#9858DB #DB5859 #9BDB58 #58DBD9
split-complementary
#9858DB #DBD958 #59DB58
monochromatic
#5B2198 #792CCA #9858DB #B78AE6 #D6BDF1

Accessibility & contrast

On white

4.42
#9858DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#9858DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9858DB
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9858DB#FFFFFF#000000##000000
##9858DB1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1177DF
Deuteranopia (green-blind)
#3778D8
Tritanopia (blue-blind)
#8B7391
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9858db;
/* rgb */ color: rgb(152, 88, 219);
/* oklch */ color: oklch(59.4% 0.195 303.5);
Tailwind
colors: {
  custom: {
    50: '#ba8ae7',
    500: '#9858db',
    950: '#000000',
  },
}
SCSS
$custom: #9858db;
$custom-light: #ba8ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#9858db",
  "rgb": {
    "r": 152,
    "g": 88,
    "b": 219
  },
  "hsl": {
    "h": 269.313,
    "s": 64.532,
    "l": 60.196
  },
  "oklch": {
    "l": 0.59447,
    "c": 0.19469,
    "h": 303.5
  },
  "luminance": 0.18769
}

Semantic roles & 50–950 ramp

primary
#9858DB
secondary
#C8E1AE
accent
#CC1975
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9858DB

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

Preview Lab → · Contrast checker → · Palette generator →

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