#8158DD#8158DD

#8158DD is a mid, vivid violet. Relative luminance 0.169; OKLCH L 57.2% C 0.194 H 293.5°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#8158DD
RGBrgb(129, 88, 221)
HSLhsl(258, 66%, 61%)
HSVhsv(258, 60%, 87%)
CMYKcmyk(41.6%, 60.2%, 0%, 13.3%)
CIE-LABlab(48.09, 46.61, -62.36)
CIE-LCHlch(48.09, 77.85, 306.77°)
OKLaboklab(57.23% 0.0775 -0.1778)
OKLCHoklch(57.23% 0.194 293.5)
XYZxyz(25.5906, 16.8664, 70.2998)
Luminance0.1687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8158DD #B4DD58
analogous
#5871DD #8158DD #C358DD
triadic
#8158DD #DD8158 #58DD81
tetradic
#8158DD #DD5871 #B4DD58 #58DDC3
square
#8158DD #DD5871 #B4DD58 #58DDC3
split-complementary
#8158DD #DDC358 #71DD58
monochromatic
#46209B #5C2ACE #8158DD #A78BE7 #CEBEF2

Accessibility & contrast

On white

4.80
#8158DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#8158DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8158DD
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8158DD#FFFFFF#000000##FFFFFF
##8158DD1.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E1
Deuteranopia (green-blind)
#0070DA
Tritanopia (blue-blind)
#687692
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8158dd;
/* rgb */ color: rgb(129, 88, 221);
/* oklch */ color: oklch(57.2% 0.194 293.5);
Tailwind
colors: {
  custom: {
    50: '#ab89e8',
    500: '#8158dd',
    950: '#000000',
  },
}
SCSS
$custom: #8158dd;
$custom-light: #ab89e8;
$custom-dark: #000000;
JSON
{
  "hex": "#8158dd",
  "rgb": {
    "r": 129,
    "g": 88,
    "b": 221
  },
  "hsl": {
    "h": 258.496,
    "s": 66.169,
    "l": 60.588
  },
  "oklch": {
    "l": 0.57232,
    "c": 0.1939,
    "h": 293.5
  },
  "luminance": 0.16867
}

Semantic roles & 50–950 ramp

primary
#8158DD
secondary
#D2E2AF
accent
#CE1796
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8158DD

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

Preview Lab → · Contrast checker → · Palette generator →

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