#A254EF#A254EF

#A254EF is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.3% C 0.224 H 303.5°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#A254EF
RGBrgb(162, 84, 239)
HSLhsl(270, 83%, 63%)
HSVhsv(270, 65%, 94%)
CMYKcmyk(32.2%, 64.9%, 0%, 6.3%)
CIE-LABlab(52.12, 60.07, -65.82)
CIE-LCHlch(52.12, 89.11, 312.39°)
OKLaboklab(61.35% 0.1238 -0.1869)
OKLCHoklch(61.35% 0.224 303.5)
XYZxyz(33.6470, 20.2541, 83.7814)
Luminance0.2025 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A254EF #A1EF54
analogous
#5454EF #A254EF #EF54EE
triadic
#A254EF #EFA254 #54EFA2
tetradic
#A254EF #EF5454 #A1EF54 #54EEEF
square
#A254EF #EF5454 #A1EF54 #54EEEF
split-complementary
#A254EF #EEEF54 #54EF54
monochromatic
#6511B7 #841CEA #A254EF #C08CF4 #DFC4F9

Accessibility & contrast

On white

4.16
#A254EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#A254EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A254EF
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A254EF#FFFFFF#000000##000000
##A254EF1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF4
Deuteranopia (green-blind)
#1D7CEC
Tritanopia (blue-blind)
#93769A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #a254ef;
/* rgb */ color: rgb(162, 84, 239);
/* oklch */ color: oklch(61.3% 0.224 303.5);
Tailwind
colors: {
  custom: {
    50: '#c389f5',
    500: '#a254ef',
    950: '#000000',
  },
}
SCSS
$custom: #a254ef;
$custom-light: #c389f5;
$custom-dark: #000000;
JSON
{
  "hex": "#a254ef",
  "rgb": {
    "r": 162,
    "g": 84,
    "b": 239
  },
  "hsl": {
    "h": 270.194,
    "s": 82.888,
    "l": 63.333
  },
  "oklch": {
    "l": 0.61348,
    "c": 0.22414,
    "h": 303.5
  },
  "luminance": 0.20254
}

Semantic roles & 50–950 ramp

primary
#A254EF
secondary
#CFEBB4
accent
#DF0672
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #A254EF

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

Preview Lab → · Contrast checker → · Palette generator →

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