#A291EC#A291EC

#A291EC is a light, vivid violet. Relative luminance 0.340; OKLCH L 70.8% C 0.131 H 291.2°. Best body text is #000000 at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#A291EC
RGBrgb(162, 145, 236)
HSLhsl(251, 71%, 75%)
HSVhsv(251, 39%, 93%)
CMYKcmyk(31.4%, 38.6%, 0%, 7.5%)
CIE-LABlab(64.95, 26.27, -43.70)
CIE-LCHlch(64.95, 50.99, 301.01°)
OKLaboklab(70.82% 0.0475 -0.1222)
OKLCHoklch(70.82% 0.131 291.2)
XYZxyz(40.1621, 33.9875, 83.7849)
Luminance0.3399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A291EC #DBEC91
analogous
#91ADEC #A291EC #D091EC
triadic
#A291EC #ECA291 #91ECA2
tetradic
#A291EC #EC91AD #DBEC91 #91ECD0
square
#A291EC #EC91AD #DBEC91 #91ECD0
split-complementary
#A291EC #ECD091 #ADEC91
monochromatic
#4A29DA #765DE3 #A291EC #CEC5F5 #E9E5FA

Accessibility & contrast

On white

2.69
#A291EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.80
#A291EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A291EC
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A291EC#FFFFFF#000000##000000
##A291EC1.002.697.807.80
#FFFFFF2.691.0021.0021.00
#0000007.8021.001.001.00
##0000007.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#769FF0
Deuteranopia (green-blind)
#779CEA
Tritanopia (blue-blind)
#91A2B3
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a291ec;
/* rgb */ color: rgb(162, 145, 236);
/* oklch */ color: oklch(70.8% 0.131 291.2);
Tailwind
colors: {
  custom: {
    50: '#c0b1f2',
    500: '#a291ec',
    950: '#000000',
  },
}
SCSS
$custom: #a291ec;
$custom-light: #c0b1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#a291ec",
  "rgb": {
    "r": 162,
    "g": 145,
    "b": 236
  },
  "hsl": {
    "h": 251.209,
    "s": 70.543,
    "l": 74.706
  },
  "oklch": {
    "l": 0.70819,
    "c": 0.13117,
    "h": 291.2
  },
  "luminance": 0.33988
}

Semantic roles & 50–950 ramp

primary
#A291EC
secondary
#EDF2D9
accent
#D313AF
background
#FCFAFE
surface
#F8F5FD
border
#D1CFD5
text
#121017
muted
#817F85

Preview Lab

Preview with #A291EC

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

Preview Lab → · Contrast checker → · Palette generator →

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