#A254E4#A254E4

#A254E4 is a mid, highly saturated violet. Relative luminance 0.196; OKLCH L 60.6% C 0.212 H 305.9°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#A254E4
RGBrgb(162, 84, 228)
HSLhsl(273, 73%, 61%)
HSVhsv(273, 63%, 89%)
CMYKcmyk(28.9%, 63.2%, 0%, 10.6%)
CIE-LABlab(51.41, 57.54, -60.78)
CIE-LCHlch(51.41, 83.70, 313.43°)
OKLaboklab(60.61% 0.1246 -0.1721)
OKLCHoklch(60.61% 0.212 305.9)
XYZxyz(32.0712, 19.6237, 75.4820)
Luminance0.1962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A254E4 #96E454
analogous
#5A54E4 #A254E4 #E454DE
triadic
#A254E4 #E4A254 #54E4A2
tetradic
#A254E4 #E45A54 #96E454 #54DEE4
square
#A254E4 #E45A54 #96E454 #54DEE4
split-complementary
#A254E4 #DEE454 #54E45A
monochromatic
#651AA4 #8522D9 #A254E4 #BF89EC #DBBEF5

Accessibility & contrast

On white

4.26
#A254E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#A254E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A254E4
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A254E4#FFFFFF#000000##000000
##A254E41.004.264.924.92
#FFFFFF4.261.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E8
Deuteranopia (green-blind)
#327BE1
Tritanopia (blue-blind)
#977295
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #a254e4;
/* rgb */ color: rgb(162, 84, 228);
/* oklch */ color: oklch(60.6% 0.212 305.9);
Tailwind
colors: {
  custom: {
    50: '#c288ed',
    500: '#a254e4',
    950: '#000000',
  },
}
SCSS
$custom: #a254e4;
$custom-light: #c288ed;
$custom-dark: #000000;
JSON
{
  "hex": "#a254e4",
  "rgb": {
    "r": 162,
    "g": 84,
    "b": 228
  },
  "hsl": {
    "h": 272.5,
    "s": 72.727,
    "l": 61.176
  },
  "oklch": {
    "l": 0.60606,
    "c": 0.21248,
    "h": 305.9
  },
  "luminance": 0.19623
}

Semantic roles & 50–950 ramp

primary
#A254E4
secondary
#C8E5AF
accent
#D5116B
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A254E4

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

Preview Lab → · Contrast checker → · Palette generator →

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