#8157F7#8157F7

#8157F7 is a mid, highly saturated violet. Relative luminance 0.182; OKLCH L 59.0% C 0.226 H 289.7°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#8157F7
RGBrgb(129, 87, 247)
HSLhsl(256, 91%, 65%)
HSVhsv(256, 65%, 97%)
CMYKcmyk(47.8%, 64.8%, 0%, 3.1%)
CIE-LABlab(49.73, 54.21, -74.33)
CIE-LCHlch(49.73, 92.00, 306.11°)
OKLaboklab(59.01% 0.0763 -0.2129)
OKLCHoklch(59.01% 0.226 289.7)
XYZxyz(29.2452, 18.1977, 89.9492)
Luminance0.1820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157F7 #CDF757
analogous
#577DF7 #8157F7 #D157F7
triadic
#8157F7 #F78157 #57F781
tetradic
#8157F7 #F7577D #CDF757 #57F7D1
square
#8157F7 #F7577D #CDF757 #57F7D1
split-complementary
#8157F7 #F7D157 #7DF757
monochromatic
#3C0ACA #551DF4 #8157F7 #AD91FA #D9CCFD

Accessibility & contrast

On white

4.53
#8157F7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#8157F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8157F7
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157F7#FFFFFF#000000##000000
##8157F71.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079FC
Deuteranopia (green-blind)
#0072F4
Tritanopia (blue-blind)
#5A7EA0
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8157f7;
/* rgb */ color: rgb(129, 87, 247);
/* oklch */ color: oklch(59.0% 0.226 289.7);
Tailwind
colors: {
  custom: {
    50: '#ae89fb',
    500: '#8157f7',
    950: '#000000',
  },
}
SCSS
$custom: #8157f7;
$custom-light: #ae89fb;
$custom-dark: #000000;
JSON
{
  "hex": "#8157f7",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 247
  },
  "hsl": {
    "h": 255.75,
    "s": 90.909,
    "l": 65.49
  },
  "oklch": {
    "l": 0.59006,
    "c": 0.22621,
    "h": 289.7
  },
  "luminance": 0.18199
}

Semantic roles & 50–950 ramp

primary
#8157F7
secondary
#E2F0BA
accent
#E600A9
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #8157F7

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

Preview Lab → · Contrast checker → · Palette generator →

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