#8A56DB#8A56DB

#8A56DB is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.7% C 0.195 H 298.0°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#8A56DB
RGBrgb(138, 86, 219)
HSLhsl(263, 65%, 60%)
HSVhsv(263, 61%, 86%)
CMYKcmyk(37%, 60.7%, 0%, 14.1%)
CIE-LABlab(48.48, 49.10, -60.55)
CIE-LCHlch(48.48, 77.96, 309.04°)
OKLaboklab(57.69% 0.0916 -0.1722)
OKLCHoklch(57.69% 0.195 298)
XYZxyz(26.5920, 17.1730, 68.9178)
Luminance0.1717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A56DB #A7DB56
analogous
#5664DB #8A56DB #CD56DB
triadic
#8A56DB #DB8A56 #56DB8A
tetradic
#8A56DB #DB5664 #A7DB56 #56DBCD
square
#8A56DB #DB5664 #A7DB56 #56DBCD
split-complementary
#8A56DB #DBCD56 #64DB56
monochromatic
#4E2097 #692BC9 #8A56DB #AD88E6 #D0BBF0

Accessibility & contrast

On white

4.74
#8A56DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#8A56DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A56DB
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A56DB#FFFFFF#000000##FFFFFF
##8A56DB1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DF
Deuteranopia (green-blind)
#1D72D8
Tritanopia (blue-blind)
#777390
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a56db;
/* rgb */ color: rgb(138, 86, 219);
/* oklch */ color: oklch(57.7% 0.195 298.0);
Tailwind
colors: {
  custom: {
    50: '#b188e7',
    500: '#8a56db',
    950: '#000000',
  },
}
SCSS
$custom: #8a56db;
$custom-light: #b188e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a56db",
  "rgb": {
    "r": 138,
    "g": 86,
    "b": 219
  },
  "hsl": {
    "h": 263.459,
    "s": 64.878,
    "l": 59.804
  },
  "oklch": {
    "l": 0.57686,
    "c": 0.19503,
    "h": 298
  },
  "luminance": 0.17173
}

Semantic roles & 50–950 ramp

primary
#8A56DB
secondary
#CCE0AD
accent
#E840A6
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A56DB

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

Preview Lab → · Contrast checker → · Palette generator →

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