#A251E7#A251E7

#A251E7 is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 60.4% C 0.220 H 305.6°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#A251E7
RGBrgb(162, 81, 231)
HSLhsl(272, 76%, 61%)
HSVhsv(272, 65%, 91%)
CMYKcmyk(29.9%, 64.9%, 0%, 9.4%)
CIE-LABlab(51.08, 59.66, -63.01)
CIE-LCHlch(51.08, 86.77, 313.43°)
OKLaboklab(60.43% 0.1278 -0.1786)
OKLCHoklch(60.43% 0.22 305.6)
XYZxyz(32.2634, 19.3360, 77.6184)
Luminance0.1934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A251E7 #96E751
analogous
#5751E7 #A251E7 #E751E1
triadic
#A251E7 #E7A251 #51E7A2
tetradic
#A251E7 #E75751 #96E751 #51E1E7
square
#A251E7 #E75751 #96E751 #51E1E7
split-complementary
#A251E7 #E1E751 #51E757
monochromatic
#6517A7 #851EDC #A251E7 #BF87EE #DBBDF6

Accessibility & contrast

On white

4.31
#A251E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#A251E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A251E7
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A251E7#FFFFFF#000000##000000
##A251E71.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077EC
Deuteranopia (green-blind)
#287AE4
Tritanopia (blue-blind)
#967195
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #a251e7;
/* rgb */ color: rgb(162, 81, 231);
/* oklch */ color: oklch(60.4% 0.220 305.6);
Tailwind
colors: {
  custom: {
    50: '#c287ef',
    500: '#a251e7',
    950: '#000000',
  },
}
SCSS
$custom: #a251e7;
$custom-light: #c287ef;
$custom-dark: #000000;
JSON
{
  "hex": "#a251e7",
  "rgb": {
    "r": 162,
    "g": 81,
    "b": 231
  },
  "hsl": {
    "h": 272.4,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.60429,
    "c": 0.21959,
    "h": 305.6
  },
  "luminance": 0.19336
}

Semantic roles & 50–950 ramp

primary
#A251E7
secondary
#C8E6AE
accent
#D80E6B
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A251E7

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

Preview Lab → · Contrast checker → · Palette generator →

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