#A254E1#A254E1

#A254E1 is a mid, highly saturated violet. Relative luminance 0.195; OKLCH L 60.4% C 0.209 H 306.6°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#A254E1
RGBrgb(162, 84, 225)
HSLhsl(273, 70%, 61%)
HSVhsv(273, 63%, 88%)
CMYKcmyk(28%, 62.7%, 0%, 11.8%)
CIE-LABlab(51.22, 56.85, -59.40)
CIE-LCHlch(51.22, 82.22, 313.75°)
OKLaboklab(60.41% 0.1248 -0.168)
OKLCHoklch(60.41% 0.209 306.6)
XYZxyz(31.6583, 19.4586, 73.3077)
Luminance0.1946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A254E1 #93E154
analogous
#5B54E1 #A254E1 #E154DA
triadic
#A254E1 #E1A254 #54E1A2
tetradic
#A254E1 #E15B54 #93E154 #54DAE1
square
#A254E1 #E15B54 #93E154 #54DAE1
split-complementary
#A254E1 #DAE154 #54E15B
monochromatic
#641C9F #8525D3 #A254E1 #BE88EA #DBBCF3

Accessibility & contrast

On white

4.29
#A254E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#A254E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A254E1
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A254E1#FFFFFF#000000##000000
##A254E11.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E5
Deuteranopia (green-blind)
#367BDE
Tritanopia (blue-blind)
#987193
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #a254e1;
/* rgb */ color: rgb(162, 84, 225);
/* oklch */ color: oklch(60.4% 0.209 306.6);
Tailwind
colors: {
  custom: {
    50: '#c288eb',
    500: '#a254e1',
    950: '#000000',
  },
}
SCSS
$custom: #a254e1;
$custom-light: #c288eb;
$custom-dark: #000000;
JSON
{
  "hex": "#a254e1",
  "rgb": {
    "r": 162,
    "g": 84,
    "b": 225
  },
  "hsl": {
    "h": 273.191,
    "s": 70.149,
    "l": 60.588
  },
  "oklch": {
    "l": 0.60409,
    "c": 0.20929,
    "h": 306.6
  },
  "luminance": 0.19458
}

Semantic roles & 50–950 ramp

primary
#A254E1
secondary
#C6E3AE
accent
#D21369
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A254E1

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

Preview Lab → · Contrast checker → · Palette generator →

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