#A254EC#A254EC

#A254EC is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 61.1% C 0.221 H 304.2°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#A254EC
RGBrgb(162, 84, 236)
HSLhsl(271, 80%, 63%)
HSVhsv(271, 64%, 93%)
CMYKcmyk(31.4%, 64.4%, 0%, 7.5%)
CIE-LABlab(51.93, 59.37, -64.45)
CIE-LCHlch(51.93, 87.63, 312.65°)
OKLaboklab(61.14% 0.1241 -0.1829)
OKLCHoklch(61.14% 0.221 304.2)
XYZxyz(33.2075, 20.0783, 81.4667)
Luminance0.2008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A254EC #9EEC54
analogous
#5654EC #A254EC #EC54EA
triadic
#A254EC #ECA254 #54ECA2
tetradic
#A254EC #EC5654 #9EEC54 #54EAEC
square
#A254EC #EC5654 #9EEC54 #54EAEC
split-complementary
#A254EC #EAEC54 #54EC56
monochromatic
#6514B2 #841DE6 #A254EC #C08BF2 #DEC2F8

Accessibility & contrast

On white

4.19
#A254EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#A254EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A254EC
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A254EC#FFFFFF#000000##000000
##A254EC1.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF1
Deuteranopia (green-blind)
#247CE9
Tritanopia (blue-blind)
#947599
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #a254ec;
/* rgb */ color: rgb(162, 84, 236);
/* oklch */ color: oklch(61.1% 0.221 304.2);
Tailwind
colors: {
  custom: {
    50: '#c289f3',
    500: '#a254ec',
    950: '#000000',
  },
}
SCSS
$custom: #a254ec;
$custom-light: #c289f3;
$custom-dark: #000000;
JSON
{
  "hex": "#a254ec",
  "rgb": {
    "r": 162,
    "g": 84,
    "b": 236
  },
  "hsl": {
    "h": 270.789,
    "s": 80,
    "l": 62.745
  },
  "oklch": {
    "l": 0.61143,
    "c": 0.22097,
    "h": 304.2
  },
  "luminance": 0.20078
}

Semantic roles & 50–950 ramp

primary
#A254EC
secondary
#CDE9B2
accent
#DC0970
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A254EC

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

Preview Lab → · Contrast checker → · Palette generator →

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