#A254D4#A254D4

#A254D4 is a mid, vivid violet. Relative luminance 0.188; OKLCH L 59.6% C 0.195 H 309.8°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#A254D4
RGBrgb(162, 84, 212)
HSLhsl(277, 60%, 58%)
HSVhsv(277, 60%, 83%)
CMYKcmyk(23.6%, 60.4%, 0%, 16.9%)
CIE-LABlab(50.42, 53.94, -53.29)
CIE-LCHlch(50.42, 75.82, 315.35°)
OKLaboklab(59.58% 0.1252 -0.1501)
OKLCHoklch(59.58% 0.195 309.8)
XYZxyz(29.9520, 18.7761, 64.3209)
Luminance0.1878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A254D4 #86D454
analogous
#6254D4 #A254D4 #D454C6
triadic
#A254D4 #D4A254 #54D4A2
tetradic
#A254D4 #D46254 #86D454 #54C6D4
square
#A254D4 #D46254 #86D454 #54C6D4
split-complementary
#A254D4 #C6D454 #54D462
monochromatic
#62238B #852FBC #A254D4 #BD85E0 #D7B6ED

Accessibility & contrast

On white

4.42
#A254D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#A254D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A254D4
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A254D4#FFFFFF#000000##000000
##A254D41.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F75D8
Deuteranopia (green-blind)
#4579D1
Tritanopia (blue-blind)
#9B6C8C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #a254d4;
/* rgb */ color: rgb(162, 84, 212);
/* oklch */ color: oklch(59.6% 0.195 309.8);
Tailwind
colors: {
  custom: {
    50: '#c188e2',
    500: '#a254d4',
    950: '#000000',
  },
}
SCSS
$custom: #a254d4;
$custom-light: #c188e2;
$custom-dark: #000000;
JSON
{
  "hex": "#a254d4",
  "rgb": {
    "r": 162,
    "g": 84,
    "b": 212
  },
  "hsl": {
    "h": 276.563,
    "s": 59.813,
    "l": 58.039
  },
  "oklch": {
    "l": 0.59577,
    "c": 0.19547,
    "h": 309.8
  },
  "luminance": 0.18775
}

Semantic roles & 50–950 ramp

primary
#A254D4
secondary
#BCDBA8
accent
#E34583
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #A254D4

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

Preview Lab → · Contrast checker → · Palette generator →

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