#A254CF#A254CF

#A254CF is a mid, vivid violet. Relative luminance 0.185; OKLCH L 59.3% C 0.190 H 311.2°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#A254CF
RGBrgb(162, 84, 207)
HSLhsl(278, 56%, 57%)
HSVhsv(278, 59%, 81%)
CMYKcmyk(21.7%, 59.4%, 0%, 18.8%)
CIE-LABlab(50.13, 52.84, -50.90)
CIE-LCHlch(50.13, 73.37, 316.07°)
OKLaboklab(59.27% 0.1252 -0.1431)
OKLCHoklch(59.27% 0.19 311.2)
XYZxyz(29.3310, 18.5277, 61.0505)
Luminance0.1853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A254CF #81CF54
analogous
#6554CF #A254CF #CF54BE
triadic
#A254CF #CFA254 #54CFA2
tetradic
#A254CF #CF6554 #81CF54 #54BECF
square
#A254CF #CF6554 #81CF54 #54BECF
split-complementary
#A254CF #BECF54 #54CF65
monochromatic
#612584 #8432B3 #A254CF #BC84DC #D6B4EA

Accessibility & contrast

On white

4.46
#A254CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#A254CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A254CF
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A254CF#FFFFFF#000000##000000
##A254CF1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2773D3
Deuteranopia (green-blind)
#4979CC
Tritanopia (blue-blind)
#9D6B8A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #a254cf;
/* rgb */ color: rgb(162, 84, 207);
/* oklch */ color: oklch(59.3% 0.190 311.2);
Tailwind
colors: {
  custom: {
    50: '#c188de',
    500: '#a254cf',
    950: '#000000',
  },
}
SCSS
$custom: #a254cf;
$custom-light: #c188de;
$custom-dark: #000000;
JSON
{
  "hex": "#a254cf",
  "rgb": {
    "r": 162,
    "g": 84,
    "b": 207
  },
  "hsl": {
    "h": 278.049,
    "s": 56.164,
    "l": 57.059
  },
  "oklch": {
    "l": 0.59268,
    "c": 0.19016,
    "h": 311.2
  },
  "luminance": 0.18527
}

Semantic roles & 50–950 ramp

primary
#A254CF
secondary
#B9D8A6
accent
#DF4880
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #A254CF

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

Preview Lab → · Contrast checker → · Palette generator →

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