#8B51EA#8B51EA

#8B51EA is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 58.2% C 0.219 H 296.3°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#8B51EA
RGBrgb(139, 81, 234)
HSLhsl(263, 78%, 62%)
HSVhsv(263, 65%, 92%)
CMYKcmyk(40.6%, 65.4%, 0%, 8.2%)
CIE-LABlab(48.65, 55.74, -68.75)
CIE-LCHlch(48.65, 88.51, 309.03°)
OKLaboklab(58.16% 0.0971 -0.1962)
OKLCHoklch(58.16% 0.219 296.3)
XYZxyz(28.4373, 17.3138, 79.6696)
Luminance0.1731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B51EA #B0EA51
analogous
#5164EA #8B51EA #D851EA
triadic
#8B51EA #EA8B51 #51EA8B
tetradic
#8B51EA #EA5164 #B0EA51 #51EAD8
square
#8B51EA #EA5164 #B0EA51 #51EAD8
split-complementary
#8B51EA #EAD851 #64EA51
monochromatic
#4E15AC #671BE2 #8B51EA #AF88F1 #D4BEF7

Accessibility & contrast

On white

4.71
#8B51EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#8B51EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B51EA
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B51EA#FFFFFF#000000##FFFFFF
##8B51EA1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EF
Deuteranopia (green-blind)
#0071E7
Tritanopia (blue-blind)
#737597
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8b51ea;
/* rgb */ color: rgb(139, 81, 234);
/* oklch */ color: oklch(58.2% 0.219 296.3);
Tailwind
colors: {
  custom: {
    50: '#b385f2',
    500: '#8b51ea',
    950: '#000000',
  },
}
SCSS
$custom: #8b51ea;
$custom-light: #b385f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8b51ea",
  "rgb": {
    "r": 139,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 262.745,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.58163,
    "c": 0.21896,
    "h": 296.3
  },
  "luminance": 0.17314
}

Semantic roles & 50–950 ramp

primary
#8B51EA
secondary
#D2E8AF
accent
#DB0B8C
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #8B51EA

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

Preview Lab → · Contrast checker → · Palette generator →

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