#8158E4#8158E4

#8158E4 is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 57.7% C 0.202 H 292.4°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#8158E4
RGBrgb(129, 88, 228)
HSLhsl(258, 72%, 62%)
HSVhsv(258, 61%, 89%)
CMYKcmyk(43.4%, 61.4%, 0%, 10.6%)
CIE-LABlab(48.57, 48.50, -65.55)
CIE-LCHlch(48.57, 81.54, 306.50°)
OKLaboklab(57.73% 0.077 -0.1871)
OKLCHoklch(57.73% 0.202 292.4)
XYZxyz(26.5427, 17.2472, 75.3143)
Luminance0.1725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8158E4 #BBE458
analogous
#5875E4 #8158E4 #C758E4
triadic
#8158E4 #E48158 #58E481
tetradic
#8158E4 #E45875 #BBE458 #58E4C7
square
#8158E4 #E45875 #BBE458 #58E4C7
split-complementary
#8158E4 #E4C758 #75E458
monochromatic
#441BA7 #5923DB #8158E4 #A98DED #D0C1F5

Accessibility & contrast

On white

4.72
#8158E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#8158E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8158E4
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8158E4#FFFFFF#000000##FFFFFF
##8158E41.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075E8
Deuteranopia (green-blind)
#0071E1
Tritanopia (blue-blind)
#657896
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8158e4;
/* rgb */ color: rgb(129, 88, 228);
/* oklch */ color: oklch(57.7% 0.202 292.4);
Tailwind
colors: {
  custom: {
    50: '#ac89ed',
    500: '#8158e4',
    950: '#000000',
  },
}
SCSS
$custom: #8158e4;
$custom-light: #ac89ed;
$custom-dark: #000000;
JSON
{
  "hex": "#8158e4",
  "rgb": {
    "r": 129,
    "g": 88,
    "b": 228
  },
  "hsl": {
    "h": 257.571,
    "s": 72.165,
    "l": 61.961
  },
  "oklch": {
    "l": 0.57733,
    "c": 0.20238,
    "h": 292.4
  },
  "luminance": 0.17248
}

Semantic roles & 50–950 ramp

primary
#8158E4
secondary
#D7E6B2
accent
#D4119B
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8158E4

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

Preview Lab → · Contrast checker → · Palette generator →

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