#A456EF#A456EF

#A456EF is a mid, highly saturated violet. Relative luminance 0.208; OKLCH L 61.8% C 0.222 H 304.0°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#A456EF
RGBrgb(164, 86, 239)
HSLhsl(271, 83%, 64%)
HSVhsv(271, 64%, 94%)
CMYKcmyk(31.4%, 64%, 0%, 6.3%)
CIE-LABlab(52.71, 59.52, -64.86)
CIE-LCHlch(52.71, 88.03, 312.54°)
OKLaboklab(61.82% 0.1242 -0.184)
OKLCHoklch(61.82% 0.222 304)
XYZxyz(34.2141, 20.7802, 83.8531)
Luminance0.2078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A456EF #A1EF56
analogous
#5756EF #A456EF #EF56EE
triadic
#A456EF #EFA456 #56EFA4
tetradic
#A456EF #EF5756 #A1EF56 #56EEEF
square
#A456EF #EF5756 #A1EF56 #56EEEF
split-complementary
#A456EF #EEEF56 #56EF57
monochromatic
#6712B9 #861EEA #A456EF #C28EF4 #E0C6FA

Accessibility & contrast

On white

4.07
#A456EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#A456EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A456EF
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A456EF#FFFFFF#000000##000000
##A456EF1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF4
Deuteranopia (green-blind)
#267EEC
Tritanopia (blue-blind)
#96779B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #a456ef;
/* rgb */ color: rgb(164, 86, 239);
/* oklch */ color: oklch(61.8% 0.222 304.0);
Tailwind
colors: {
  custom: {
    50: '#c48af5',
    500: '#a456ef',
    950: '#000000',
  },
}
SCSS
$custom: #a456ef;
$custom-light: #c48af5;
$custom-dark: #000000;
JSON
{
  "hex": "#a456ef",
  "rgb": {
    "r": 164,
    "g": 86,
    "b": 239
  },
  "hsl": {
    "h": 270.588,
    "s": 82.703,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61821,
    "c": 0.22199,
    "h": 304
  },
  "luminance": 0.2078
}

Semantic roles & 50–950 ramp

primary
#A456EF
secondary
#D0EBB5
accent
#DF0671
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #A456EF

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

Preview Lab → · Contrast checker → · Palette generator →

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