#A254E9#A254E9

#A254E9 is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.9% C 0.218 H 304.8°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#A254E9
RGBrgb(162, 84, 233)
HSLhsl(271, 77%, 62%)
HSVhsv(271, 64%, 91%)
CMYKcmyk(30.5%, 63.9%, 0%, 8.6%)
CIE-LABlab(51.73, 58.68, -63.08)
CIE-LCHlch(51.73, 86.16, 312.93°)
OKLaboklab(60.94% 0.1243 -0.1788)
OKLCHoklch(60.94% 0.218 304.8)
XYZxyz(32.7753, 19.9054, 79.1905)
Luminance0.1991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A254E9 #9BE954
analogous
#5754E9 #A254E9 #E954E6
triadic
#A254E9 #E9A254 #54E9A2
tetradic
#A254E9 #E95754 #9BE954 #54E6E9
square
#A254E9 #E95754 #9BE954 #54E6E9
split-complementary
#A254E9 #E6E954 #54E957
monochromatic
#6516AC #851EE2 #A254E9 #BF8AF0 #DDC0F7

Accessibility & contrast

On white

4.22
#A254E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#A254E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A254E9
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A254E9#FFFFFF#000000##000000
##A254E91.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EE
Deuteranopia (green-blind)
#2A7BE6
Tritanopia (blue-blind)
#957497
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #a254e9;
/* rgb */ color: rgb(162, 84, 233);
/* oklch */ color: oklch(60.9% 0.218 304.8);
Tailwind
colors: {
  custom: {
    50: '#c289f1',
    500: '#a254e9',
    950: '#000000',
  },
}
SCSS
$custom: #a254e9;
$custom-light: #c289f1;
$custom-dark: #000000;
JSON
{
  "hex": "#a254e9",
  "rgb": {
    "r": 162,
    "g": 84,
    "b": 233
  },
  "hsl": {
    "h": 271.409,
    "s": 77.202,
    "l": 62.157
  },
  "oklch": {
    "l": 0.6094,
    "c": 0.21778,
    "h": 304.8
  },
  "luminance": 0.19905
}

Semantic roles & 50–950 ramp

primary
#A254E9
secondary
#CBE8B1
accent
#D90C6E
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A254E9

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

Preview Lab → · Contrast checker → · Palette generator →

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