#A254D7#A254D7

#A254D7 is a mid, vivid violet. Relative luminance 0.189; OKLCH L 59.8% C 0.199 H 309.1°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#A254D7
RGBrgb(162, 84, 215)
HSLhsl(276, 62%, 59%)
HSVhsv(276, 61%, 84%)
CMYKcmyk(24.7%, 60.9%, 0%, 15.7%)
CIE-LABlab(50.60, 54.61, -54.71)
CIE-LCHlch(50.60, 77.30, 314.94°)
OKLaboklab(59.77% 0.1252 -0.1543)
OKLCHoklch(59.77% 0.199 309.1)
XYZxyz(30.3339, 18.9288, 66.3325)
Luminance0.1893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A254D7 #89D754
analogous
#6054D7 #A254D7 #D754CA
triadic
#A254D7 #D7A254 #54D7A2
tetradic
#A254D7 #D76054 #89D754 #54CAD7
square
#A254D7 #D76054 #89D754 #54CAD7
split-complementary
#A254D7 #CAD754 #54D760
monochromatic
#63218F #852DC1 #A254D7 #BD86E3 #D8B7EE

Accessibility & contrast

On white

4.39
#A254D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#A254D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A254D7
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A254D7#FFFFFF#000000##000000
##A254D71.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1875DB
Deuteranopia (green-blind)
#427AD4
Tritanopia (blue-blind)
#9A6E8E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #a254d7;
/* rgb */ color: rgb(162, 84, 215);
/* oklch */ color: oklch(59.8% 0.199 309.1);
Tailwind
colors: {
  custom: {
    50: '#c188e4',
    500: '#a254d7',
    950: '#000000',
  },
}
SCSS
$custom: #a254d7;
$custom-light: #c188e4;
$custom-dark: #000000;
JSON
{
  "hex": "#a254d7",
  "rgb": {
    "r": 162,
    "g": 84,
    "b": 215
  },
  "hsl": {
    "h": 275.725,
    "s": 62.085,
    "l": 58.627
  },
  "oklch": {
    "l": 0.59765,
    "c": 0.19865,
    "h": 309.1
  },
  "luminance": 0.18928
}

Semantic roles & 50–950 ramp

primary
#A254D7
secondary
#BEDDA9
accent
#E54384
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A254D7

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

Preview Lab → · Contrast checker → · Palette generator →

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