#A254E5#A254E5

#A254E5 is a mid, highly saturated violet. Relative luminance 0.197; OKLCH L 60.7% C 0.214 H 305.7°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#A254E5
RGBrgb(162, 84, 229)
HSLhsl(272, 74%, 61%)
HSVhsv(272, 63%, 90%)
CMYKcmyk(29.3%, 63.3%, 0%, 10.2%)
CIE-LABlab(51.47, 57.77, -61.25)
CIE-LCHlch(51.47, 84.19, 313.32°)
OKLaboklab(60.67% 0.1246 -0.1734)
OKLCHoklch(60.67% 0.214 305.7)
XYZxyz(32.2104, 19.6794, 76.2152)
Luminance0.1968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A254E5 #97E554
analogous
#5A54E5 #A254E5 #E554DF
triadic
#A254E5 #E5A254 #54E5A2
tetradic
#A254E5 #E55A54 #97E554 #54DFE5
square
#A254E5 #E55A54 #97E554 #54DFE5
split-complementary
#A254E5 #DFE554 #54E55A
monochromatic
#6519A5 #8521DB #A254E5 #BF89ED #DCBEF5

Accessibility & contrast

On white

4.25
#A254E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#A254E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A254E5
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A254E5#FFFFFF#000000##000000
##A254E51.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E9
Deuteranopia (green-blind)
#317BE2
Tritanopia (blue-blind)
#967295
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #a254e5;
/* rgb */ color: rgb(162, 84, 229);
/* oklch */ color: oklch(60.7% 0.214 305.7);
Tailwind
colors: {
  custom: {
    50: '#c288ee',
    500: '#a254e5',
    950: '#000000',
  },
}
SCSS
$custom: #a254e5;
$custom-light: #c288ee;
$custom-dark: #000000;
JSON
{
  "hex": "#a254e5",
  "rgb": {
    "r": 162,
    "g": 84,
    "b": 229
  },
  "hsl": {
    "h": 272.276,
    "s": 73.604,
    "l": 61.373
  },
  "oklch": {
    "l": 0.60672,
    "c": 0.21353,
    "h": 305.7
  },
  "luminance": 0.19679
}

Semantic roles & 50–950 ramp

primary
#A254E5
secondary
#C8E6AF
accent
#D6106B
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A254E5

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

Preview Lab → · Contrast checker → · Palette generator →

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