#A654EB#A654EB

#A654EB is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.5% C 0.221 H 305.8°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#A654EB
RGBrgb(166, 84, 235)
HSLhsl(273, 79%, 63%)
HSVhsv(273, 64%, 92%)
CMYKcmyk(29.4%, 64.3%, 0%, 7.8%)
CIE-LABlab(52.34, 59.99, -63.20)
CIE-LCHlch(52.34, 87.14, 313.50°)
OKLaboklab(61.52% 0.1293 -0.1791)
OKLCHoklch(61.52% 0.221 305.8)
XYZxyz(33.8884, 20.4461, 80.7424)
Luminance0.2045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A654EB #99EB54
analogous
#5B54EB #A654EB #EB54E4
triadic
#A654EB #EBA654 #54EBA6
tetradic
#A654EB #EB5B54 #99EB54 #54E4EB
square
#A654EB #EB5B54 #99EB54 #54E4EB
split-complementary
#A654EB #E4EB54 #54EB5B
monochromatic
#6915B0 #891DE5 #A654EB #C38BF1 #DFC2F8

Accessibility & contrast

On white

4.13
#A654EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#A654EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A654EB
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A654EB#FFFFFF#000000##000000
##A654EB1.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF0
Deuteranopia (green-blind)
#2E7DE8
Tritanopia (blue-blind)
#9A7498
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #a654eb;
/* rgb */ color: rgb(166, 84, 235);
/* oklch */ color: oklch(61.5% 0.221 305.8);
Tailwind
colors: {
  custom: {
    50: '#c589f2',
    500: '#a654eb',
    950: '#000000',
  },
}
SCSS
$custom: #a654eb;
$custom-light: #c589f2;
$custom-dark: #000000;
JSON
{
  "hex": "#a654eb",
  "rgb": {
    "r": 166,
    "g": 84,
    "b": 235
  },
  "hsl": {
    "h": 272.583,
    "s": 79.058,
    "l": 62.549
  },
  "oklch": {
    "l": 0.61524,
    "c": 0.22085,
    "h": 305.8
  },
  "luminance": 0.20446
}

Semantic roles & 50–950 ramp

primary
#A654EB
secondary
#CBE9B2
accent
#DB0A6A
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A654EB

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

Preview Lab → · Contrast checker → · Palette generator →

#A654EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva