#8251EB#8251EB

#8251EB is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.3% C 0.220 H 292.8°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#8251EB
RGBrgb(130, 81, 235)
HSLhsl(259, 79%, 62%)
HSVhsv(259, 66%, 92%)
CMYKcmyk(44.7%, 65.5%, 0%, 7.8%)
CIE-LABlab(47.79, 54.30, -70.76)
CIE-LCHlch(47.79, 89.20, 307.50°)
OKLaboklab(57.35% 0.085 -0.2024)
OKLCHoklch(57.35% 0.22 292.8)
XYZxyz(27.1396, 16.6280, 80.3607)
Luminance0.1663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8251EB #BAEB51
analogous
#516DEB #8251EB #CF51EB
triadic
#8251EB #EB8251 #51EB82
tetradic
#8251EB #EB516D #BAEB51 #51EBCF
square
#8251EB #EB516D #BAEB51 #51EBCF
split-complementary
#8251EB #EBCF51 #6DEB51
monochromatic
#4514AE #5B1AE5 #8251EB #A988F1 #D1BFF8

Accessibility & contrast

On white

4.85
#8251EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#8251EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8251EB
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8251EB#FFFFFF#000000##FFFFFF
##8251EB1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F0
Deuteranopia (green-blind)
#006EE8
Tritanopia (blue-blind)
#637697
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8251eb;
/* rgb */ color: rgb(130, 81, 235);
/* oklch */ color: oklch(57.3% 0.220 292.8);
Tailwind
colors: {
  custom: {
    50: '#ae85f2',
    500: '#8251eb',
    950: '#000000',
  },
}
SCSS
$custom: #8251eb;
$custom-light: #ae85f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8251eb",
  "rgb": {
    "r": 130,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 259.091,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.57348,
    "c": 0.21954,
    "h": 292.8
  },
  "luminance": 0.16629
}

Semantic roles & 50–950 ramp

primary
#8251EB
secondary
#D6E8B0
accent
#DC0A99
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #8251EB

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

Preview Lab → · Contrast checker → · Palette generator →

#8251EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva