#8158F2#8158F2

#8158F2 is a mid, highly saturated violet. Relative luminance 0.181; OKLCH L 58.8% C 0.219 H 290.3°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#8158F2
RGBrgb(129, 88, 242)
HSLhsl(256, 86%, 65%)
HSVhsv(256, 64%, 95%)
CMYKcmyk(46.7%, 63.6%, 0%, 5.1%)
CIE-LABlab(49.56, 52.31, -71.81)
CIE-LCHlch(49.56, 88.84, 306.07°)
OKLaboklab(58.77% 0.0759 -0.2055)
OKLCHoklch(58.77% 0.219 290.3)
XYZxyz(28.5655, 18.0563, 85.9673)
Luminance0.1806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8158F2 #C9F258
analogous
#587CF2 #8158F2 #CE58F2
triadic
#8158F2 #F28158 #58F281
tetradic
#8158F2 #F2587C #C9F258 #58F2CE
square
#8158F2 #F2587C #C9F258 #58F2CE
split-complementary
#8158F2 #F2CE58 #7CF258
monochromatic
#3E0FC1 #561FEE #8158F2 #AC91F6 #D7CAFB

Accessibility & contrast

On white

4.55
#8158F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#8158F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8158F2
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8158F2#FFFFFF#000000##000000
##8158F21.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F7
Deuteranopia (green-blind)
#0072EF
Tritanopia (blue-blind)
#5D7D9D
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8158f2;
/* rgb */ color: rgb(129, 88, 242);
/* oklch */ color: oklch(58.8% 0.219 290.3);
Tailwind
colors: {
  custom: {
    50: '#ae89f7',
    500: '#8158f2',
    950: '#000000',
  },
}
SCSS
$custom: #8158f2;
$custom-light: #ae89f7;
$custom-dark: #000000;
JSON
{
  "hex": "#8158f2",
  "rgb": {
    "r": 129,
    "g": 88,
    "b": 242
  },
  "hsl": {
    "h": 255.974,
    "s": 85.556,
    "l": 64.706
  },
  "oklch": {
    "l": 0.58767,
    "c": 0.21911,
    "h": 290.3
  },
  "luminance": 0.18057
}

Semantic roles & 50–950 ramp

primary
#8158F2
secondary
#DFEDB8
accent
#E203A7
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #8158F2

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

Preview Lab → · Contrast checker → · Palette generator →

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