#A254DC#A254DC

#A254DC is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 60.1% C 0.204 H 307.8°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#A254DC
RGBrgb(162, 84, 220)
HSLhsl(274, 66%, 60%)
HSVhsv(274, 62%, 86%)
CMYKcmyk(26.4%, 61.8%, 0%, 13.7%)
CIE-LABlab(50.91, 55.72, -57.06)
CIE-LCHlch(50.91, 79.76, 314.32°)
OKLaboklab(60.08% 0.125 -0.1612)
OKLCHoklch(60.08% 0.204 307.8)
XYZxyz(30.9862, 19.1898, 69.7679)
Luminance0.1919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A254DC #8EDC54
analogous
#5E54DC #A254DC #DC54D2
triadic
#A254DC #DCA254 #54DCA2
tetradic
#A254DC #DC5E54 #8EDC54 #54D2DC
square
#A254DC #DC5E54 #8EDC54 #54D2DC
split-complementary
#A254DC #D2DC54 #54DC5E
monochromatic
#641F97 #8529CA #A254DC #BE87E6 #D9BAF1

Accessibility & contrast

On white

4.34
#A254DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#A254DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A254DC
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A254DC#FFFFFF#000000##000000
##A254DC1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0676E0
Deuteranopia (green-blind)
#3C7AD9
Tritanopia (blue-blind)
#996F90
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #a254dc;
/* rgb */ color: rgb(162, 84, 220);
/* oklch */ color: oklch(60.1% 0.204 307.8);
Tailwind
colors: {
  custom: {
    50: '#c188e8',
    500: '#a254dc',
    950: '#000000',
  },
}
SCSS
$custom: #a254dc;
$custom-light: #c188e8;
$custom-dark: #000000;
JSON
{
  "hex": "#a254dc",
  "rgb": {
    "r": 162,
    "g": 84,
    "b": 220
  },
  "hsl": {
    "h": 274.412,
    "s": 66.019,
    "l": 59.608
  },
  "oklch": {
    "l": 0.60084,
    "c": 0.20397,
    "h": 307.8
  },
  "luminance": 0.19189
}

Semantic roles & 50–950 ramp

primary
#A254DC
secondary
#C2E0AC
accent
#E93F87
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A254DC

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

Preview Lab → · Contrast checker → · Palette generator →

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