#A254CB#A254CB

#A254CB is a mid, vivid violet. Relative luminance 0.183; OKLCH L 59.0% C 0.186 H 312.3°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#A254CB
RGBrgb(162, 84, 203)
HSLhsl(279, 53%, 56%)
HSVhsv(279, 59%, 80%)
CMYKcmyk(20.2%, 58.6%, 0%, 20.4%)
CIE-LABlab(49.90, 51.97, -48.98)
CIE-LCHlch(49.90, 71.41, 316.70°)
OKLaboklab(59.03% 0.1252 -0.1375)
OKLCHoklch(59.03% 0.186 312.3)
XYZxyz(28.8482, 18.3345, 58.5076)
Luminance0.1833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A254CB #7DCB54
analogous
#6754CB #A254CB #CB54B9
triadic
#A254CB #CBA254 #54CBA2
tetradic
#A254CB #CB6754 #7DCB54 #54B9CB
square
#A254CB #CB6754 #7DCB54 #54B9CB
split-complementary
#A254CB #B9CB54 #54CB67
monochromatic
#60267E #8435AD #A254CB #BC83D9 #D5B2E8

Accessibility & contrast

On white

4.50
#A254CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#A254CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A254CB
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A254CB#FFFFFF#000000##000000
##A254CB1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D73CF
Deuteranopia (green-blind)
#4C78C8
Tritanopia (blue-blind)
#9E6988
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #a254cb;
/* rgb */ color: rgb(162, 84, 203);
/* oklch */ color: oklch(59.0% 0.186 312.3);
Tailwind
colors: {
  custom: {
    50: '#c088db',
    500: '#a254cb',
    950: '#000000',
  },
}
SCSS
$custom: #a254cb;
$custom-light: #c088db;
$custom-dark: #000000;
JSON
{
  "hex": "#a254cb",
  "rgb": {
    "r": 162,
    "g": 84,
    "b": 203
  },
  "hsl": {
    "h": 279.328,
    "s": 53.363,
    "l": 56.275
  },
  "oklch": {
    "l": 0.59026,
    "c": 0.18592,
    "h": 312.3
  },
  "luminance": 0.18334
}

Semantic roles & 50–950 ramp

primary
#A254CB
secondary
#B6D6A5
accent
#DD4B7D
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #A254CB

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

Preview Lab → · Contrast checker → · Palette generator →

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