#8157ED#8157ED

#8157ED is a mid, highly saturated violet. Relative luminance 0.176; OKLCH L 58.2% C 0.214 H 291.1°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#8157ED
RGBrgb(129, 87, 237)
HSLhsl(257, 81%, 64%)
HSVhsv(257, 63%, 93%)
CMYKcmyk(45.6%, 63.3%, 0%, 7.1%)
CIE-LABlab(49.00, 51.48, -69.92)
CIE-LCHlch(49.00, 86.83, 306.37°)
OKLaboklab(58.25% 0.0774 -0.2)
OKLCHoklch(58.25% 0.214 291.1)
XYZxyz(27.7432, 17.5970, 82.0391)
Luminance0.1760 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157ED #C3ED57
analogous
#5778ED #8157ED #CC57ED
triadic
#8157ED #ED8157 #57ED81
tetradic
#8157ED #ED5778 #C3ED57 #57EDCC
square
#8157ED #ED5778 #C3ED57 #57EDCC
split-complementary
#8157ED #EDCC57 #78ED57
monochromatic
#4114B6 #5820E7 #8157ED #AA8EF3 #D4C6F9

Accessibility & contrast

On white

4.65
#8157ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#8157ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8157ED
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157ED#FFFFFF#000000##FFFFFF
##8157ED1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F2
Deuteranopia (green-blind)
#0071EA
Tritanopia (blue-blind)
#607B9A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8157ed;
/* rgb */ color: rgb(129, 87, 237);
/* oklch */ color: oklch(58.2% 0.214 291.1);
Tailwind
colors: {
  custom: {
    50: '#ad89f4',
    500: '#8157ed',
    950: '#000000',
  },
}
SCSS
$custom: #8157ed;
$custom-light: #ad89f4;
$custom-dark: #000000;
JSON
{
  "hex": "#8157ed",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 237
  },
  "hsl": {
    "h": 256.8,
    "s": 80.645,
    "l": 63.529
  },
  "oklch": {
    "l": 0.58248,
    "c": 0.21443,
    "h": 291.1
  },
  "luminance": 0.17598
}

Semantic roles & 50–950 ramp

primary
#8157ED
secondary
#DCEAB5
accent
#DD09A1
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #8157ED

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

Preview Lab → · Contrast checker → · Palette generator →

#8157ED Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva