#8A51D2#8A51D2

#8A51D2 is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.3% C 0.191 H 300.7°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#8A51D2
RGBrgb(138, 81, 210)
HSLhsl(267, 59%, 57%)
HSVhsv(267, 61%, 82%)
CMYKcmyk(34.3%, 61.4%, 0%, 17.6%)
CIE-LABlab(46.90, 49.48, -57.96)
CIE-LCHlch(46.90, 76.21, 310.49°)
OKLaboklab(56.35% 0.0979 -0.1645)
OKLCHoklch(56.35% 0.191 300.7)
XYZxyz(25.0537, 15.9411, 62.7173)
Luminance0.1594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51D2 #99D251
analogous
#5158D2 #8A51D2 #CB51D2
triadic
#8A51D2 #D28A51 #51D28A
tetradic
#8A51D2 #D25158 #99D251 #51D2CB
square
#8A51D2 #D25158 #99D251 #51D2CB
split-complementary
#8A51D2 #D2CB51 #58D251
monochromatic
#4F2386 #6B2FB7 #8A51D2 #AB82DF #CBB2EB

Accessibility & contrast

On white

5.01
#8A51D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#8A51D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51D2
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51D2#FFFFFF#000000##FFFFFF
##8A51D21.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD6
Deuteranopia (green-blind)
#246ECF
Tritanopia (blue-blind)
#7B6D8A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a51d2;
/* rgb */ color: rgb(138, 81, 210);
/* oklch */ color: oklch(56.3% 0.191 300.7);
Tailwind
colors: {
  custom: {
    50: '#b185e0',
    500: '#8a51d2',
    950: '#000000',
  },
}
SCSS
$custom: #8a51d2;
$custom-light: #b185e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51d2",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 210
  },
  "hsl": {
    "h": 266.512,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.56348,
    "c": 0.19146,
    "h": 300.7
  },
  "luminance": 0.15941
}

Semantic roles & 50–950 ramp

primary
#8A51D2
secondary
#C2DAA5
accent
#E2469D
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A51D2

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

Preview Lab → · Contrast checker → · Palette generator →

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