#A654F2#A654F2

#A654F2 is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 62.0% C 0.228 H 304.3°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#A654F2
RGBrgb(166, 84, 242)
HSLhsl(271, 86%, 64%)
HSVhsv(271, 65%, 95%)
CMYKcmyk(31.4%, 65.3%, 0%, 5.1%)
CIE-LABlab(52.79, 61.58, -66.39)
CIE-LCHlch(52.79, 90.55, 312.85°)
OKLaboklab(62% 0.1287 -0.1884)
OKLCHoklch(62% 0.228 304.3)
XYZxyz(34.9196, 20.8586, 86.1737)
Luminance0.2086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A654F2 #A0F254
analogous
#5754F2 #A654F2 #F254EF
triadic
#A654F2 #F2A654 #54F2A6
tetradic
#A654F2 #F25754 #A0F254 #54EFF2
square
#A654F2 #F25754 #A0F254 #54EFF2
split-complementary
#A654F2 #EFF254 #54F257
monochromatic
#690EBD #881BEE #A654F2 #C48DF6 #E1C6FB

Accessibility & contrast

On white

4.06
#A654F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#A654F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A654F2
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A654F2#FFFFFF#000000##000000
##A654F21.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF7
Deuteranopia (green-blind)
#1F7EEF
Tritanopia (blue-blind)
#98779C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #a654f2;
/* rgb */ color: rgb(166, 84, 242);
/* oklch */ color: oklch(62.0% 0.228 304.3);
Tailwind
colors: {
  custom: {
    50: '#c589f7',
    500: '#a654f2',
    950: '#000000',
  },
}
SCSS
$custom: #a654f2;
$custom-light: #c589f7;
$custom-dark: #000000;
JSON
{
  "hex": "#a654f2",
  "rgb": {
    "r": 166,
    "g": 84,
    "b": 242
  },
  "hsl": {
    "h": 271.139,
    "s": 85.87,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61997,
    "c": 0.22816,
    "h": 304.3
  },
  "luminance": 0.20858
}

Semantic roles & 50–950 ramp

primary
#A654F2
secondary
#D0EDB5
accent
#E2036F
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#130C17
muted
#827D85

Preview Lab

Preview with #A654F2

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

Preview Lab → · Contrast checker → · Palette generator →

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