#A251EC#A251EC

#A251EC is a mid, highly saturated violet. Relative luminance 0.196; OKLCH L 60.8% C 0.225 H 304.5°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#A251EC
RGBrgb(162, 81, 236)
HSLhsl(271, 80%, 62%)
HSVhsv(271, 66%, 93%)
CMYKcmyk(31.4%, 65.7%, 0%, 7.5%)
CIE-LABlab(51.41, 60.80, -65.29)
CIE-LCHlch(51.41, 89.22, 312.96°)
OKLaboklab(60.77% 0.1273 -0.1853)
OKLCHoklch(60.77% 0.225 304.5)
XYZxyz(32.9796, 19.6225, 81.3907)
Luminance0.1962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A251EC #9BEC51
analogous
#5551EC #A251EC #EC51E8
triadic
#A251EC #ECA251 #51ECA2
tetradic
#A251EC #EC5551 #9BEC51 #51E8EC
square
#A251EC #EC5551 #9BEC51 #51E8EC
split-complementary
#A251EC #E8EC51 #51EC55
monochromatic
#6513AF #851AE6 #A251EC #BF88F2 #DDBFF8

Accessibility & contrast

On white

4.26
#A251EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#A251EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A251EC
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A251EC#FFFFFF#000000##000000
##A251EC1.004.264.924.92
#FFFFFF4.261.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F1
Deuteranopia (green-blind)
#1D7AE9
Tritanopia (blue-blind)
#947398
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #a251ec;
/* rgb */ color: rgb(162, 81, 236);
/* oklch */ color: oklch(60.8% 0.225 304.5);
Tailwind
colors: {
  custom: {
    50: '#c387f3',
    500: '#a251ec',
    950: '#000000',
  },
}
SCSS
$custom: #a251ec;
$custom-light: #c387f3;
$custom-dark: #000000;
JSON
{
  "hex": "#a251ec",
  "rgb": {
    "r": 162,
    "g": 81,
    "b": 236
  },
  "hsl": {
    "h": 271.355,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.60771,
    "c": 0.22482,
    "h": 304.5
  },
  "luminance": 0.19622
}

Semantic roles & 50–950 ramp

primary
#A251EC
secondary
#CBE9B0
accent
#DD096E
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A251EC

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

Preview Lab → · Contrast checker → · Palette generator →

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