#8251E2#8251E2

#8251E2 is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.7% C 0.209 H 294.3°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#8251E2
RGBrgb(130, 81, 226)
HSLhsl(260, 71%, 60%)
HSVhsv(260, 64%, 89%)
CMYKcmyk(42.5%, 64.2%, 0%, 11.4%)
CIE-LABlab(47.13, 51.92, -66.74)
CIE-LCHlch(47.13, 84.56, 307.88°)
OKLaboklab(56.67% 0.086 -0.1906)
OKLCHoklch(56.67% 0.209 294.3)
XYZxyz(25.8721, 16.1210, 73.6853)
Luminance0.1612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8251E2 #B1E251
analogous
#5168E2 #8251E2 #CB51E2
triadic
#8251E2 #E28251 #51E282
tetradic
#8251E2 #E25168 #B1E251 #51E2CB
square
#8251E2 #E25168 #B1E251 #51E2CB
split-complementary
#8251E2 #E2CB51 #68E251
monochromatic
#471A9E #5E23D3 #8251E2 #A885EB #CDBAF3

Accessibility & contrast

On white

4.97
#8251E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#8251E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8251E2
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8251E2#FFFFFF#000000##FFFFFF
##8251E21.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E7
Deuteranopia (green-blind)
#006DDF
Tritanopia (blue-blind)
#687392
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8251e2;
/* rgb */ color: rgb(130, 81, 226);
/* oklch */ color: oklch(56.7% 0.209 294.3);
Tailwind
colors: {
  custom: {
    50: '#ad85ec',
    500: '#8251e2',
    950: '#000000',
  },
}
SCSS
$custom: #8251e2;
$custom-light: #ad85ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8251e2",
  "rgb": {
    "r": 130,
    "g": 81,
    "b": 226
  },
  "hsl": {
    "h": 260.276,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.5667,
    "c": 0.2091,
    "h": 294.3
  },
  "luminance": 0.16122
}

Semantic roles & 50–950 ramp

primary
#8251E2
secondary
#D0E3AC
accent
#D31292
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8251E2

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

Preview Lab → · Contrast checker → · Palette generator →

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