#A251EB#A251EB

#A251EB is a mid, highly saturated violet. Relative luminance 0.196; OKLCH L 60.7% C 0.224 H 304.7°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#A251EB
RGBrgb(162, 81, 235)
HSLhsl(272, 79%, 62%)
HSVhsv(272, 66%, 92%)
CMYKcmyk(31.1%, 65.5%, 0%, 7.8%)
CIE-LABlab(51.34, 60.57, -64.84)
CIE-LCHlch(51.34, 88.73, 313.05°)
OKLaboklab(60.7% 0.1274 -0.184)
OKLCHoklch(60.7% 0.224 304.7)
XYZxyz(32.8348, 19.5646, 80.6277)
Luminance0.1956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A251EB #9AEB51
analogous
#5551EB #A251EB #EB51E7
triadic
#A251EB #EBA251 #51EBA2
tetradic
#A251EB #EB5551 #9AEB51 #51E7EB
square
#A251EB #EB5551 #9AEB51 #51E7EB
split-complementary
#A251EB #E7EB51 #51EB55
monochromatic
#6514AE #851AE5 #A251EB #BF88F1 #DDBFF8

Accessibility & contrast

On white

4.27
#A251EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#A251EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A251EB
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A251EB#FFFFFF#000000##000000
##A251EB1.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F0
Deuteranopia (green-blind)
#207AE8
Tritanopia (blue-blind)
#957397
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #a251eb;
/* rgb */ color: rgb(162, 81, 235);
/* oklch */ color: oklch(60.7% 0.224 304.7);
Tailwind
colors: {
  custom: {
    50: '#c287f2',
    500: '#a251eb',
    950: '#000000',
  },
}
SCSS
$custom: #a251eb;
$custom-light: #c287f2;
$custom-dark: #000000;
JSON
{
  "hex": "#a251eb",
  "rgb": {
    "r": 162,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 271.558,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60702,
    "c": 0.22377,
    "h": 304.7
  },
  "luminance": 0.19564
}

Semantic roles & 50–950 ramp

primary
#A251EB
secondary
#CAE8B0
accent
#DC0A6D
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A251EB

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

Preview Lab → · Contrast checker → · Palette generator →

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