#A254EB#A254EB

#A254EB is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 61.1% C 0.220 H 304.4°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#A254EB
RGBrgb(162, 84, 235)
HSLhsl(271, 79%, 63%)
HSVhsv(271, 64%, 92%)
CMYKcmyk(31.1%, 64.3%, 0%, 7.8%)
CIE-LABlab(51.86, 59.14, -64.00)
CIE-LCHlch(51.86, 87.14, 312.74°)
OKLaboklab(61.08% 0.1241 -0.1815)
OKLCHoklch(61.08% 0.22 304.4)
XYZxyz(33.0626, 20.0203, 80.7037)
Luminance0.2002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A254EB #9DEB54
analogous
#5654EB #A254EB #EB54E9
triadic
#A254EB #EBA254 #54EBA2
tetradic
#A254EB #EB5654 #9DEB54 #54E9EB
square
#A254EB #EB5654 #9DEB54 #54E9EB
split-complementary
#A254EB #E9EB54 #54EB56
monochromatic
#6515B0 #841DE5 #A254EB #C08BF1 #DEC2F8

Accessibility & contrast

On white

4.20
#A254EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#A254EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A254EB
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A254EB#FFFFFF#000000##000000
##A254EB1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF0
Deuteranopia (green-blind)
#267CE8
Tritanopia (blue-blind)
#947598
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #a254eb;
/* rgb */ color: rgb(162, 84, 235);
/* oklch */ color: oklch(61.1% 0.220 304.4);
Tailwind
colors: {
  custom: {
    50: '#c289f2',
    500: '#a254eb',
    950: '#000000',
  },
}
SCSS
$custom: #a254eb;
$custom-light: #c289f2;
$custom-dark: #000000;
JSON
{
  "hex": "#a254eb",
  "rgb": {
    "r": 162,
    "g": 84,
    "b": 235
  },
  "hsl": {
    "h": 270.993,
    "s": 79.058,
    "l": 62.549
  },
  "oklch": {
    "l": 0.61075,
    "c": 0.21991,
    "h": 304.4
  },
  "luminance": 0.2002
}

Semantic roles & 50–950 ramp

primary
#A254EB
secondary
#CCE9B2
accent
#DB0A6F
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A254EB

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

Preview Lab → · Contrast checker → · Palette generator →

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