#A851EA#A851EA

#A851EA is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.3% C 0.224 H 307.1°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#A851EA
RGBrgb(168, 81, 234)
HSLhsl(274, 78%, 62%)
HSVhsv(274, 65%, 92%)
CMYKcmyk(28.2%, 65.4%, 0%, 8.2%)
CIE-LABlab(52.01, 61.59, -63.16)
CIE-LCHlch(52.01, 88.22, 314.28°)
OKLaboklab(61.32% 0.1352 -0.1789)
OKLCHoklch(61.32% 0.224 307.1)
XYZxyz(33.9390, 20.1506, 79.9275)
Luminance0.2015 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A851EA #93EA51
analogous
#5C51EA #A851EA #EA51DF
triadic
#A851EA #EAA851 #51EAA8
tetradic
#A851EA #EA5C51 #93EA51 #51DFEA
square
#A851EA #EA5C51 #93EA51 #51DFEA
split-complementary
#A851EA #DFEA51 #51EA5C
monochromatic
#6B15AC #8D1BE2 #A851EA #C388F1 #DFBEF7

Accessibility & contrast

On white

4.17
#A851EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#A851EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A851EA
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A851EA#FFFFFF#000000##000000
##A851EA1.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EF
Deuteranopia (green-blind)
#2E7DE7
Tritanopia (blue-blind)
#9D7297
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #a851ea;
/* rgb */ color: rgb(168, 81, 234);
/* oklch */ color: oklch(61.3% 0.224 307.1);
Tailwind
colors: {
  custom: {
    50: '#c687f2',
    500: '#a851ea',
    950: '#000000',
  },
}
SCSS
$custom: #a851ea;
$custom-light: #c687f2;
$custom-dark: #000000;
JSON
{
  "hex": "#a851ea",
  "rgb": {
    "r": 168,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 274.118,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.61318,
    "c": 0.22422,
    "h": 307.1
  },
  "luminance": 0.2015
}

Semantic roles & 50–950 ramp

primary
#A851EA
secondary
#C8E8AF
accent
#DB0B64
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A851EA

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

Preview Lab → · Contrast checker → · Palette generator →

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