#8158C8#8158C8

#8158C8 is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.8% C 0.168 H 297.6°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8158C8
RGBrgb(129, 88, 200)
HSLhsl(262, 50%, 56%)
HSVhsv(262, 56%, 78%)
CMYKcmyk(35.5%, 56%, 0%, 21.6%)
CIE-LABlab(46.73, 41.02, -52.53)
CIE-LCHlch(46.73, 66.65, 307.99°)
OKLaboklab(55.8% 0.0778 -0.1489)
OKLCHoklch(55.8% 0.168 297.6)
XYZxyz(22.9657, 15.8164, 56.4753)
Luminance0.1582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8158C8 #9FC858
analogous
#5867C8 #8158C8 #B958C8
triadic
#8158C8 #C88158 #58C881
tetradic
#8158C8 #C85867 #9FC858 #58C8B9
square
#8158C8 #C85867 #9FC858 #58C8B9
split-complementary
#8158C8 #C8B958 #67C858
monochromatic
#48297D #6238AB #8158C8 #A486D7 #C6B4E6

Accessibility & contrast

On white

5.04
#8158C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#8158C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8158C8
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8158C8#FFFFFF#000000##FFFFFF
##8158C81.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#246FCC
Deuteranopia (green-blind)
#336EC5
Tritanopia (blue-blind)
#716F87
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8158c8;
/* rgb */ color: rgb(129, 88, 200);
/* oklch */ color: oklch(55.8% 0.168 297.6);
Tailwind
colors: {
  custom: {
    50: '#aa88d9',
    500: '#8158c8',
    950: '#000000',
  },
}
SCSS
$custom: #8158c8;
$custom-light: #aa88d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8158c8",
  "rgb": {
    "r": 129,
    "g": 88,
    "b": 200
  },
  "hsl": {
    "h": 261.964,
    "s": 50.45,
    "l": 56.471
  },
  "oklch": {
    "l": 0.55802,
    "c": 0.16797,
    "h": 297.6
  },
  "luminance": 0.15817
}

Semantic roles & 50–950 ramp

primary
#8158C8
secondary
#C4D5A7
accent
#DA4EA7
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #8158C8

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

Preview Lab → · Contrast checker → · Palette generator →

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