#8158DC#8158DC

#8158DC is a mid, vivid violet. Relative luminance 0.168; OKLCH L 57.2% C 0.193 H 293.7°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#8158DC
RGBrgb(129, 88, 220)
HSLhsl(259, 65%, 60%)
HSVhsv(259, 60%, 86%)
CMYKcmyk(41.4%, 60%, 0%, 13.7%)
CIE-LABlab(48.02, 46.34, -61.90)
CIE-LCHlch(48.02, 77.32, 306.82°)
OKLaboklab(57.16% 0.0775 -0.1764)
OKLCHoklch(57.16% 0.193 293.7)
XYZxyz(25.4578, 16.8132, 69.6002)
Luminance0.1681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8158DC #B3DC58
analogous
#5871DC #8158DC #C358DC
triadic
#8158DC #DC8158 #58DC81
tetradic
#8158DC #DC5871 #B3DC58 #58DCC3
square
#8158DC #DC5871 #B3DC58 #58DCC3
split-complementary
#8158DC #DCC358 #71DC58
monochromatic
#462099 #5D2BCC #8158DC #A78BE7 #CDBDF1

Accessibility & contrast

On white

4.81
#8158DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#8158DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8158DC
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8158DC#FFFFFF#000000##FFFFFF
##8158DC1.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E0
Deuteranopia (green-blind)
#0570D9
Tritanopia (blue-blind)
#697592
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8158dc;
/* rgb */ color: rgb(129, 88, 220);
/* oklch */ color: oklch(57.2% 0.193 293.7);
Tailwind
colors: {
  custom: {
    50: '#ab89e8',
    500: '#8158dc',
    950: '#000000',
  },
}
SCSS
$custom: #8158dc;
$custom-light: #ab89e8;
$custom-dark: #000000;
JSON
{
  "hex": "#8158dc",
  "rgb": {
    "r": 129,
    "g": 88,
    "b": 220
  },
  "hsl": {
    "h": 258.636,
    "s": 65.347,
    "l": 60.392
  },
  "oklch": {
    "l": 0.57161,
    "c": 0.19268,
    "h": 293.7
  },
  "luminance": 0.16814
}

Semantic roles & 50–950 ramp

primary
#8158DC
secondary
#D1E1AF
accent
#CD1895
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8158DC

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

Preview Lab → · Contrast checker → · Palette generator →

#8158DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva