#8158DB#8158DB

#8158DB is a mid, vivid violet. Relative luminance 0.168; OKLCH L 57.1% C 0.191 H 293.9°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#8158DB
RGBrgb(129, 88, 219)
HSLhsl(259, 65%, 60%)
HSVhsv(259, 60%, 86%)
CMYKcmyk(41.1%, 59.8%, 0%, 14.1%)
CIE-LABlab(47.96, 46.07, -61.44)
CIE-LCHlch(47.96, 76.79, 306.86°)
OKLaboklab(57.09% 0.0775 -0.1751)
OKLCHoklch(57.09% 0.191 293.9)
XYZxyz(25.3257, 16.7604, 68.9048)
Luminance0.1676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8158DB #B2DB58
analogous
#5870DB #8158DB #C358DB
triadic
#8158DB #DB8158 #58DB81
tetradic
#8158DB #DB5870 #B2DB58 #58DBC3
square
#8158DB #DB5870 #B2DB58 #58DBC3
split-complementary
#8158DB #DBC358 #70DB58
monochromatic
#462198 #5D2CCA #8158DB #A78AE6 #CDBDF1

Accessibility & contrast

On white

4.83
#8158DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#8158DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8158DB
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8158DB#FFFFFF#000000##FFFFFF
##8158DB1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DF
Deuteranopia (green-blind)
#0A70D8
Tritanopia (blue-blind)
#697591
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8158db;
/* rgb */ color: rgb(129, 88, 219);
/* oklch */ color: oklch(57.1% 0.191 293.9);
Tailwind
colors: {
  custom: {
    50: '#ab89e7',
    500: '#8158db',
    950: '#000000',
  },
}
SCSS
$custom: #8158db;
$custom-light: #ab89e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8158db",
  "rgb": {
    "r": 129,
    "g": 88,
    "b": 219
  },
  "hsl": {
    "h": 258.779,
    "s": 64.532,
    "l": 60.196
  },
  "oklch": {
    "l": 0.57091,
    "c": 0.19146,
    "h": 293.9
  },
  "luminance": 0.16761
}

Semantic roles & 50–950 ramp

primary
#8158DB
secondary
#D1E1AE
accent
#CC1994
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8158DB

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

Preview Lab → · Contrast checker → · Palette generator →

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