#A254DB#A254DB

#A254DB is a mid, highly saturated violet. Relative luminance 0.191; OKLCH L 60.0% C 0.203 H 308.1°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#A254DB
RGBrgb(162, 84, 219)
HSLhsl(275, 65%, 59%)
HSVhsv(275, 62%, 86%)
CMYKcmyk(26%, 61.6%, 0%, 14.1%)
CIE-LABlab(50.85, 55.50, -56.59)
CIE-LCHlch(50.85, 79.27, 314.44°)
OKLaboklab(60.02% 0.1251 -0.1598)
OKLCHoklch(60.02% 0.203 308.1)
XYZxyz(30.8542, 19.1369, 69.0725)
Luminance0.1914 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A254DB #8DDB54
analogous
#5F54DB #A254DB #DB54D0
triadic
#A254DB #DBA254 #54DBA2
tetradic
#A254DB #DB5F54 #8DDB54 #54D0DB
square
#A254DB #DB5F54 #8DDB54 #54D0DB
split-complementary
#A254DB #D0DB54 #54DB5F
monochromatic
#631F95 #852AC8 #A254DB #BD87E6 #D9B9F0

Accessibility & contrast

On white

4.35
#A254DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#A254DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A254DB
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A254DB#FFFFFF#000000##000000
##A254DB1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0B76DF
Deuteranopia (green-blind)
#3E7AD8
Tritanopia (blue-blind)
#996F90
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #a254db;
/* rgb */ color: rgb(162, 84, 219);
/* oklch */ color: oklch(60.0% 0.203 308.1);
Tailwind
colors: {
  custom: {
    50: '#c188e7',
    500: '#a254db',
    950: '#000000',
  },
}
SCSS
$custom: #a254db;
$custom-light: #c188e7;
$custom-dark: #000000;
JSON
{
  "hex": "#a254db",
  "rgb": {
    "r": 162,
    "g": 84,
    "b": 219
  },
  "hsl": {
    "h": 274.667,
    "s": 65.217,
    "l": 59.412
  },
  "oklch": {
    "l": 0.6002,
    "c": 0.20291,
    "h": 308.1
  },
  "luminance": 0.19137
}

Semantic roles & 50–950 ramp

primary
#A254DB
secondary
#C1E0AB
accent
#E84087
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A254DB

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

Preview Lab → · Contrast checker → · Palette generator →

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