#8158FB#8158FB

#8158FB is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 59.5% C 0.230 H 289.0°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#8158FB
RGBrgb(129, 88, 251)
HSLhsl(255, 95%, 66%)
HSVhsv(255, 65%, 98%)
CMYKcmyk(48.6%, 64.9%, 0%, 1.6%)
CIE-LABlab(50.23, 54.78, -75.75)
CIE-LCHlch(50.23, 93.48, 305.87°)
OKLaboklab(59.46% 0.0749 -0.2171)
OKLCHoklch(59.46% 0.23 289)
XYZxyz(29.9505, 18.6103, 93.2621)
Luminance0.1861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8158FB #D2FB58
analogous
#5881FB #8158FB #D358FB
triadic
#8158FB #FB8158 #58FB81
tetradic
#8158FB #FB5881 #D2FB58 #58FBD3
square
#8158FB #FB5881 #D2FB58 #58FBD3
split-complementary
#8158FB #FBD358 #81FB58
monochromatic
#3905D4 #541CFA #8158FB #AE94FC #DBD0FE

Accessibility & contrast

On white

4.45
#8158FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#8158FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8158FB
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8158FB#FFFFFF#000000##000000
##8158FB1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BFF
Deuteranopia (green-blind)
#0073F8
Tritanopia (blue-blind)
#5780A2
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8158fb;
/* rgb */ color: rgb(129, 88, 251);
/* oklch */ color: oklch(59.5% 0.230 289.0);
Tailwind
colors: {
  custom: {
    50: '#af89fe',
    500: '#8158fb',
    950: '#000000',
  },
}
SCSS
$custom: #8158fb;
$custom-light: #af89fe;
$custom-dark: #000000;
JSON
{
  "hex": "#8158fb",
  "rgb": {
    "r": 129,
    "g": 88,
    "b": 251
  },
  "hsl": {
    "h": 255.092,
    "s": 95.322,
    "l": 66.471
  },
  "oklch": {
    "l": 0.59455,
    "c": 0.22969,
    "h": 289
  },
  "luminance": 0.18612
}

Semantic roles & 50–950 ramp

primary
#8158FB
secondary
#E5F2BD
accent
#E600AC
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #8158FB

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

Preview Lab → · Contrast checker → · Palette generator →

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