#A254D8#A254D8

#A254D8 is a mid, vivid violet. Relative luminance 0.190; OKLCH L 59.8% C 0.200 H 308.8°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#A254D8
RGBrgb(162, 84, 216)
HSLhsl(275, 63%, 59%)
HSVhsv(275, 61%, 85%)
CMYKcmyk(25%, 61.1%, 0%, 15.3%)
CIE-LABlab(50.66, 54.83, -55.18)
CIE-LCHlch(50.66, 77.79, 314.82°)
OKLaboklab(59.83% 0.1252 -0.1556)
OKLCHoklch(59.83% 0.2 308.8)
XYZxyz(30.4628, 18.9804, 67.0112)
Luminance0.1898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A254D8 #8AD854
analogous
#6054D8 #A254D8 #D854CC
triadic
#A254D8 #D8A254 #54D8A2
tetradic
#A254D8 #D86054 #8AD854 #54CCD8
square
#A254D8 #D86054 #8AD854 #54CCD8
split-complementary
#A254D8 #CCD854 #54D860
monochromatic
#632191 #852CC2 #A254D8 #BD86E3 #D8B8EF

Accessibility & contrast

On white

4.38
#A254D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#A254D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A254D8
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A254D8#FFFFFF#000000##000000
##A254D81.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1575DC
Deuteranopia (green-blind)
#417AD5
Tritanopia (blue-blind)
#9A6E8E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #a254d8;
/* rgb */ color: rgb(162, 84, 216);
/* oklch */ color: oklch(59.8% 0.200 308.8);
Tailwind
colors: {
  custom: {
    50: '#c188e5',
    500: '#a254d8',
    950: '#000000',
  },
}
SCSS
$custom: #a254d8;
$custom-light: #c188e5;
$custom-dark: #000000;
JSON
{
  "hex": "#a254d8",
  "rgb": {
    "r": 162,
    "g": 84,
    "b": 216
  },
  "hsl": {
    "h": 275.455,
    "s": 62.857,
    "l": 58.824
  },
  "oklch": {
    "l": 0.59829,
    "c": 0.19972,
    "h": 308.8
  },
  "luminance": 0.1898
}

Semantic roles & 50–950 ramp

primary
#A254D8
secondary
#BFDEAA
accent
#E64285
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A254D8

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

Preview Lab → · Contrast checker → · Palette generator →

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