#8151EF#8151EF

#8151EF is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 57.6% C 0.224 H 291.8°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#8151EF
RGBrgb(129, 81, 239)
HSLhsl(258, 83%, 63%)
HSVhsv(258, 66%, 94%)
CMYKcmyk(46%, 66.1%, 0%, 6.3%)
CIE-LABlab(47.99, 55.19, -72.70)
CIE-LCHlch(47.99, 91.27, 307.20°)
OKLaboklab(57.56% 0.0831 -0.2081)
OKLCHoklch(57.56% 0.224 291.8)
XYZxyz(27.5713, 16.7830, 83.4314)
Luminance0.1678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151EF #BFEF51
analogous
#5170EF #8151EF #D051EF
triadic
#8151EF #EF8151 #51EF81
tetradic
#8151EF #EF5170 #BFEF51 #51EFD0
square
#8151EF #EF5170 #BFEF51 #51EFD0
split-complementary
#8151EF #EFD051 #70EF51
monochromatic
#4311B5 #5819EA #8151EF #AA89F4 #D2C1F9

Accessibility & contrast

On white

4.82
#8151EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#8151EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151EF
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151EF#FFFFFF#000000##FFFFFF
##8151EF1.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F4
Deuteranopia (green-blind)
#006FEC
Tritanopia (blue-blind)
#5F7899
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8151ef;
/* rgb */ color: rgb(129, 81, 239);
/* oklch */ color: oklch(57.6% 0.224 291.8);
Tailwind
colors: {
  custom: {
    50: '#ae85f5',
    500: '#8151ef',
    950: '#000000',
  },
}
SCSS
$custom: #8151ef;
$custom-light: #ae85f5;
$custom-dark: #000000;
JSON
{
  "hex": "#8151ef",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 239
  },
  "hsl": {
    "h": 258.228,
    "s": 83.158,
    "l": 62.745
  },
  "oklch": {
    "l": 0.5756,
    "c": 0.22412,
    "h": 291.8
  },
  "luminance": 0.16784
}

Semantic roles & 50–950 ramp

primary
#8151EF
secondary
#D9EAB1
accent
#E0069D
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #8151EF

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

Preview Lab → · Contrast checker → · Palette generator →

#8151EF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva