#8158DE#8158DE

#8158DE is a mid, vivid violet. Relative luminance 0.169; OKLCH L 57.3% C 0.195 H 293.4°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#8158DE
RGBrgb(129, 88, 222)
HSLhsl(258, 67%, 61%)
HSVhsv(258, 60%, 87%)
CMYKcmyk(41.9%, 60.4%, 0%, 12.9%)
CIE-LABlab(48.16, 46.88, -62.82)
CIE-LCHlch(48.16, 78.38, 306.73°)
OKLaboklab(57.3% 0.0774 -0.1791)
OKLCHoklch(57.3% 0.195 293.4)
XYZxyz(25.7242, 16.9198, 71.0036)
Luminance0.1692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8158DE #B5DE58
analogous
#5872DE #8158DE #C458DE
triadic
#8158DE #DE8158 #58DE81
tetradic
#8158DE #DE5872 #B5DE58 #58DEC4
square
#8158DE #DE5872 #B5DE58 #58DEC4
split-complementary
#8158DE #DEC458 #72DE58
monochromatic
#451F9D #5C29D0 #8158DE #A88BE8 #CEBEF2

Accessibility & contrast

On white

4.79
#8158DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#8158DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8158DE
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8158DE#FFFFFF#000000##FFFFFF
##8158DE1.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E2
Deuteranopia (green-blind)
#0070DB
Tritanopia (blue-blind)
#687693
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8158de;
/* rgb */ color: rgb(129, 88, 222);
/* oklch */ color: oklch(57.3% 0.195 293.4);
Tailwind
colors: {
  custom: {
    50: '#ac89e9',
    500: '#8158de',
    950: '#000000',
  },
}
SCSS
$custom: #8158de;
$custom-light: #ac89e9;
$custom-dark: #000000;
JSON
{
  "hex": "#8158de",
  "rgb": {
    "r": 129,
    "g": 88,
    "b": 222
  },
  "hsl": {
    "h": 258.358,
    "s": 67,
    "l": 60.784
  },
  "oklch": {
    "l": 0.57303,
    "c": 0.19512,
    "h": 293.4
  },
  "luminance": 0.16921
}

Semantic roles & 50–950 ramp

primary
#8158DE
secondary
#D3E2B0
accent
#CF1797
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8158DE

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

Preview Lab → · Contrast checker → · Palette generator →

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