#A254BC#A254BC

#A254BC is a mid, vivid purple. Relative luminance 0.177; OKLCH L 58.2% C 0.170 H 317.0°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#A254BC
RGBrgb(162, 84, 188)
HSLhsl(285, 44%, 53%)
HSVhsv(285, 55%, 74%)
CMYKcmyk(13.8%, 55.3%, 0%, 26.3%)
CIE-LABlab(49.07, 48.79, -41.63)
CIE-LCHlch(49.07, 64.14, 319.52°)
OKLaboklab(58.15% 0.1245 -0.116)
OKLCHoklch(58.15% 0.17 317)
XYZxyz(27.1464, 17.6538, 49.5448)
Luminance0.1765 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A254BC #6EBC54
analogous
#6E54BC #A254BC #BC54A2
triadic
#A254BC #BCA254 #54BCA2
tetradic
#A254BC #BC6E54 #6EBC54 #54A2BC
square
#A254BC #BC6E54 #6EBC54 #54A2BC
split-complementary
#A254BC #A2BC54 #54BC6E
monochromatic
#5B2A6B #803B97 #A254BC #BA80CD #D2ACDE

Accessibility & contrast

On white

4.64
#A254BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#A254BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #A254BC
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A254BC#FFFFFF#000000##FFFFFF
##A254BC1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C70BF
Deuteranopia (green-blind)
#5777B9
Tritanopia (blue-blind)
#A16480
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #a254bc;
/* rgb */ color: rgb(162, 84, 188);
/* oklch */ color: oklch(58.2% 0.170 317.0);
Tailwind
colors: {
  custom: {
    50: '#c087d0',
    500: '#a254bc',
    950: '#000000',
  },
}
SCSS
$custom: #a254bc;
$custom-light: #c087d0;
$custom-dark: #000000;
JSON
{
  "hex": "#a254bc",
  "rgb": {
    "r": 162,
    "g": 84,
    "b": 188
  },
  "hsl": {
    "h": 285,
    "s": 43.697,
    "l": 53.333
  },
  "oklch": {
    "l": 0.58154,
    "c": 0.17018,
    "h": 317
  },
  "luminance": 0.17653
}

Semantic roles & 50–950 ramp

primary
#A254BC
secondary
#ABCCA0
accent
#D35474
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#120C14
muted
#817D82

Preview Lab

Preview with #A254BC

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

Preview Lab → · Contrast checker → · Palette generator →

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