#8158CD#8158CD

#8158CD is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.1% C 0.174 H 296.5°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#8158CD
RGBrgb(129, 88, 205)
HSLhsl(261, 54%, 57%)
HSVhsv(261, 57%, 80%)
CMYKcmyk(37.1%, 57.1%, 0%, 19.6%)
CIE-LABlab(47.05, 42.34, -54.91)
CIE-LCHlch(47.05, 69.33, 307.63°)
OKLaboklab(56.13% 0.0778 -0.1559)
OKLCHoklch(56.13% 0.174 296.5)
XYZxyz(23.5596, 16.0540, 59.6032)
Luminance0.1605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8158CD #A4CD58
analogous
#5869CD #8158CD #BC58CD
triadic
#8158CD #CD8158 #58CD81
tetradic
#8158CD #CD5869 #A4CD58 #58CDBC
square
#8158CD #CD5869 #A4CD58 #58CDBC
split-complementary
#8158CD #CDBC58 #69CD58
monochromatic
#482783 #6135B2 #8158CD #A587DB #C8B6E9

Accessibility & contrast

On white

4.99
#8158CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#8158CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8158CD
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8158CD#FFFFFF#000000##FFFFFF
##8158CD1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B70D1
Deuteranopia (green-blind)
#2C6ECA
Tritanopia (blue-blind)
#6F718A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8158cd;
/* rgb */ color: rgb(129, 88, 205);
/* oklch */ color: oklch(56.1% 0.174 296.5);
Tailwind
colors: {
  custom: {
    50: '#aa89dd',
    500: '#8158cd',
    950: '#000000',
  },
}
SCSS
$custom: #8158cd;
$custom-light: #aa89dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8158cd",
  "rgb": {
    "r": 129,
    "g": 88,
    "b": 205
  },
  "hsl": {
    "h": 261.026,
    "s": 53.917,
    "l": 57.451
  },
  "oklch": {
    "l": 0.56132,
    "c": 0.17421,
    "h": 296.5
  },
  "luminance": 0.16054
}

Semantic roles & 50–950 ramp

primary
#8158CD
secondary
#C7D8A9
accent
#DD4BAA
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #8158CD

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

Preview Lab → · Contrast checker → · Palette generator →

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