#8A51FF#8A51FF

#8A51FF is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.7% C 0.242 H 292.5°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#8A51FF
RGBrgb(138, 81, 255)
HSLhsl(260, 100%, 66%)
HSVhsv(260, 68%, 100%)
CMYKcmyk(45.9%, 68.2%, 0%, 0%)
CIE-LABlab(50.11, 60.96, -78.14)
CIE-LCHlch(50.11, 99.11, 307.96°)
OKLaboklab(59.67% 0.0928 -0.2238)
OKLCHoklch(59.67% 0.242 292.5)
XYZxyz(31.4686, 18.5071, 96.5025)
Luminance0.1851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51FF #C6FF51
analogous
#516FFF #8A51FF #E151FF
triadic
#8A51FF #FF8A51 #51FF8A
tetradic
#8A51FF #FF516F #C6FF51 #51FFE1
square
#8A51FF #FF516F #C6FF51 #51FFE1
split-complementary
#8A51FF #FFE151 #6FFF51
monochromatic
#4600D6 #6114FF #8A51FF #B38EFF #DCCBFF

Accessibility & contrast

On white

4.47
#8A51FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#8A51FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A51FF
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51FF#FFFFFF#000000##000000
##8A51FF1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AFF
Deuteranopia (green-blind)
#0074FC
Tritanopia (blue-blind)
#667DA2
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8a51ff;
/* rgb */ color: rgb(138, 81, 255);
/* oklch */ color: oklch(59.7% 0.242 292.5);
Tailwind
colors: {
  custom: {
    50: '#b586ff',
    500: '#8a51ff',
    950: '#000000',
  },
}
SCSS
$custom: #8a51ff;
$custom-light: #b586ff;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51ff",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 255
  },
  "hsl": {
    "h": 259.655,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.59667,
    "c": 0.24232,
    "h": 292.5
  },
  "luminance": 0.18508
}

Semantic roles & 50–950 ramp

primary
#8A51FF
secondary
#E0F3B9
accent
#E6009A
background
#FBF8FF
surface
#F7F0FF
border
#D0CBD7
text
#120B18
muted
#817C86

Preview Lab

Preview with #8A51FF

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

Preview Lab → · Contrast checker → · Palette generator →

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