#A251CB#A251CB

#A251CB is a mid, vivid violet. Relative luminance 0.179; OKLCH L 58.6% C 0.190 H 312.6°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#A251CB
RGBrgb(162, 81, 203)
HSLhsl(280, 54%, 56%)
HSVhsv(280, 60%, 80%)
CMYKcmyk(20.2%, 60.1%, 0%, 20.4%)
CIE-LABlab(49.35, 53.46, -49.86)
CIE-LCHlch(49.35, 73.10, 317.00°)
OKLaboklab(58.63% 0.1289 -0.14)
OKLCHoklch(58.63% 0.19 312.6)
XYZxyz(28.6203, 17.8788, 58.4316)
Luminance0.1788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A251CB #7ACB51
analogous
#6551CB #A251CB #CB51B7
triadic
#A251CB #CBA251 #51CBA2
tetradic
#A251CB #CB6551 #7ACB51 #51B7CB
square
#A251CB #CB6551 #7ACB51 #51B7CB
split-complementary
#A251CB #B7CB51 #51CB65
monochromatic
#5F257C #8333AC #A251CB #BB80D9 #D4AFE7

Accessibility & contrast

On white

4.59
#A251CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#A251CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #A251CB
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A251CB#FFFFFF#000000##FFFFFF
##A251CB1.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2671CF
Deuteranopia (green-blind)
#4977C8
Tritanopia (blue-blind)
#9E6786
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #a251cb;
/* rgb */ color: rgb(162, 81, 203);
/* oklch */ color: oklch(58.6% 0.190 312.6);
Tailwind
colors: {
  custom: {
    50: '#c186db',
    500: '#a251cb',
    950: '#000000',
  },
}
SCSS
$custom: #a251cb;
$custom-light: #c186db;
$custom-dark: #000000;
JSON
{
  "hex": "#a251cb",
  "rgb": {
    "r": 162,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 279.836,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.58625,
    "c": 0.19034,
    "h": 312.6
  },
  "luminance": 0.17878
}

Semantic roles & 50–950 ramp

primary
#A251CB
secondary
#B4D5A3
accent
#DD4A7C
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #A251CB

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

Preview Lab → · Contrast checker → · Palette generator →

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