#A657EB#A657EB

#A657EB is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 61.9% C 0.217 H 305.5°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#A657EB
RGBrgb(166, 87, 235)
HSLhsl(272, 79%, 63%)
HSVhsv(272, 63%, 92%)
CMYKcmyk(29.4%, 63%, 0%, 7.8%)
CIE-LABlab(52.86, 58.55, -62.36)
CIE-LCHlch(52.86, 85.53, 313.20°)
OKLaboklab(61.9% 0.1259 -0.1766)
OKLCHoklch(61.9% 0.217 305.5)
XYZxyz(34.1262, 20.9218, 80.8216)
Luminance0.2092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A657EB #9CEB57
analogous
#5C57EB #A657EB #EB57E6
triadic
#A657EB #EBA657 #57EBA6
tetradic
#A657EB #EB5C57 #9CEB57 #57E6EB
square
#A657EB #EB5C57 #9CEB57 #57E6EB
split-complementary
#A657EB #E6EB57 #57EB5C
monochromatic
#6915B2 #8920E4 #A657EB #C38EF2 #E0C4F8

Accessibility & contrast

On white

4.05
#A657EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#A657EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A657EB
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A657EB#FFFFFF#000000##000000
##A657EB1.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF0
Deuteranopia (green-blind)
#337EE8
Tritanopia (blue-blind)
#9A7699
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #a657eb;
/* rgb */ color: rgb(166, 87, 235);
/* oklch */ color: oklch(61.9% 0.217 305.5);
Tailwind
colors: {
  custom: {
    50: '#c58bf2',
    500: '#a657eb',
    950: '#000000',
  },
}
SCSS
$custom: #a657eb;
$custom-light: #c58bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#a657eb",
  "rgb": {
    "r": 166,
    "g": 87,
    "b": 235
  },
  "hsl": {
    "h": 272.027,
    "s": 78.723,
    "l": 63.137
  },
  "oklch": {
    "l": 0.61903,
    "c": 0.21688,
    "h": 305.5
  },
  "luminance": 0.20922
}

Semantic roles & 50–950 ramp

primary
#A657EB
secondary
#CDE9B4
accent
#DB0A6C
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A657EB

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

Preview Lab → · Contrast checker → · Palette generator →

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