#A254EA#A254EA

#A254EA is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 61.0% C 0.219 H 304.6°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#A254EA
RGBrgb(162, 84, 234)
HSLhsl(271, 78%, 62%)
HSVhsv(271, 64%, 92%)
CMYKcmyk(30.8%, 64.1%, 0%, 8.2%)
CIE-LABlab(51.80, 58.91, -63.54)
CIE-LCHlch(51.80, 86.65, 312.84°)
OKLaboklab(61.01% 0.1242 -0.1802)
OKLCHoklch(61.01% 0.219 304.6)
XYZxyz(32.9186, 19.9627, 79.9449)
Luminance0.1996 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A254EA #9CEA54
analogous
#5754EA #A254EA #EA54E7
triadic
#A254EA #EAA254 #54EAA2
tetradic
#A254EA #EA5754 #9CEA54 #54E7EA
square
#A254EA #EA5754 #9CEA54 #54E7EA
split-complementary
#A254EA #E7EA54 #54EA57
monochromatic
#6515AE #841DE3 #A254EA #C08BF1 #DDC1F7

Accessibility & contrast

On white

4.21
#A254EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#A254EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A254EA
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A254EA#FFFFFF#000000##000000
##A254EA1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EF
Deuteranopia (green-blind)
#287CE7
Tritanopia (blue-blind)
#957498
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #a254ea;
/* rgb */ color: rgb(162, 84, 234);
/* oklch */ color: oklch(61.0% 0.219 304.6);
Tailwind
colors: {
  custom: {
    50: '#c289f2',
    500: '#a254ea',
    950: '#000000',
  },
}
SCSS
$custom: #a254ea;
$custom-light: #c289f2;
$custom-dark: #000000;
JSON
{
  "hex": "#a254ea",
  "rgb": {
    "r": 162,
    "g": 84,
    "b": 234
  },
  "hsl": {
    "h": 271.2,
    "s": 78.125,
    "l": 62.353
  },
  "oklch": {
    "l": 0.61007,
    "c": 0.21885,
    "h": 304.6
  },
  "luminance": 0.19963
}

Semantic roles & 50–950 ramp

primary
#A254EA
secondary
#CCE8B2
accent
#DA0B6F
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A254EA

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

Preview Lab → · Contrast checker → · Palette generator →

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