#8D51EF#8D51EF

#8D51EF is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.7% C 0.225 H 296.2°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#8D51EF
RGBrgb(141, 81, 239)
HSLhsl(263, 83%, 63%)
HSVhsv(263, 66%, 94%)
CMYKcmyk(41%, 66.1%, 0%, 6.3%)
CIE-LABlab(49.23, 57.39, -70.62)
CIE-LCHlch(49.23, 91.00, 309.10°)
OKLaboklab(58.74% 0.0992 -0.2017)
OKLCHoklch(58.74% 0.225 296.2)
XYZxyz(29.5028, 17.7790, 83.5219)
Luminance0.1778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D51EF #B3EF51
analogous
#5164EF #8D51EF #DC51EF
triadic
#8D51EF #EF8D51 #51EF8D
tetradic
#8D51EF #EF5164 #B3EF51 #51EFDC
square
#8D51EF #EF5164 #B3EF51 #51EFDC
split-complementary
#8D51EF #EFDC51 #64EF51
monochromatic
#4F11B5 #6819EA #8D51EF #B289F4 #D6C1F9

Accessibility & contrast

On white

4.61
#8D51EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#8D51EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8D51EF
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D51EF#FFFFFF#000000##FFFFFF
##8D51EF1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F4
Deuteranopia (green-blind)
#0073EC
Tritanopia (blue-blind)
#747799
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8d51ef;
/* rgb */ color: rgb(141, 81, 239);
/* oklch */ color: oklch(58.7% 0.225 296.2);
Tailwind
colors: {
  custom: {
    50: '#b586f5',
    500: '#8d51ef',
    950: '#000000',
  },
}
SCSS
$custom: #8d51ef;
$custom-light: #b586f5;
$custom-dark: #000000;
JSON
{
  "hex": "#8d51ef",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 239
  },
  "hsl": {
    "h": 262.785,
    "s": 83.158,
    "l": 62.745
  },
  "oklch": {
    "l": 0.58738,
    "c": 0.22474,
    "h": 296.2
  },
  "luminance": 0.1778
}

Semantic roles & 50–950 ramp

primary
#8D51EF
secondary
#D5EAB1
accent
#E0068D
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120B17
muted
#817C85

Preview Lab

Preview with #8D51EF

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

Preview Lab → · Contrast checker → · Palette generator →

#8D51EF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva