#A254CC#A254CC

#A254CC is a mid, vivid violet. Relative luminance 0.184; OKLCH L 59.1% C 0.187 H 312.0°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#A254CC
RGBrgb(162, 84, 204)
HSLhsl(279, 54%, 56%)
HSVhsv(279, 59%, 80%)
CMYKcmyk(20.6%, 58.8%, 0%, 20%)
CIE-LABlab(49.96, 52.19, -49.46)
CIE-LCHlch(49.96, 71.90, 316.54°)
OKLaboklab(59.09% 0.1252 -0.1389)
OKLCHoklch(59.09% 0.187 312)
XYZxyz(28.9678, 18.3824, 59.1372)
Luminance0.1838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A254CC #7ECC54
analogous
#6654CC #A254CC #CC54BA
triadic
#A254CC #CCA254 #54CCA2
tetradic
#A254CC #CC6654 #7ECC54 #54BACC
square
#A254CC #CC6654 #7ECC54 #54BACC
split-complementary
#A254CC #BACC54 #54CC66
monochromatic
#602680 #8434AF #A254CC #BC83DA #D5B2E8

Accessibility & contrast

On white

4.49
#A254CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#A254CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A254CC
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A254CC#FFFFFF#000000##000000
##A254CC1.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B73D0
Deuteranopia (green-blind)
#4C78C9
Tritanopia (blue-blind)
#9D6A88
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #a254cc;
/* rgb */ color: rgb(162, 84, 204);
/* oklch */ color: oklch(59.1% 0.187 312.0);
Tailwind
colors: {
  custom: {
    50: '#c188dc',
    500: '#a254cc',
    950: '#000000',
  },
}
SCSS
$custom: #a254cc;
$custom-light: #c188dc;
$custom-dark: #000000;
JSON
{
  "hex": "#a254cc",
  "rgb": {
    "r": 162,
    "g": 84,
    "b": 204
  },
  "hsl": {
    "h": 279,
    "s": 54.054,
    "l": 56.471
  },
  "oklch": {
    "l": 0.59086,
    "c": 0.18698,
    "h": 312
  },
  "luminance": 0.18382
}

Semantic roles & 50–950 ramp

primary
#A254CC
secondary
#B7D7A5
accent
#DD4A7E
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #A254CC

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

Preview Lab → · Contrast checker → · Palette generator →

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