#A640E3#A640E3

#A640E3 is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 58.7% C 0.237 H 309.5°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#A640E3
RGBrgb(166, 64, 227)
HSLhsl(278, 74%, 57%)
HSVhsv(278, 72%, 89%)
CMYKcmyk(26.9%, 71.8%, 0%, 11%)
CIE-LABlab(48.66, 67.01, -64.63)
CIE-LCHlch(48.66, 93.10, 316.04°)
OKLaboklab(58.73% 0.1508 -0.1831)
OKLCHoklch(58.73% 0.237 309.5)
XYZxyz(31.4216, 17.3204, 74.3461)
Luminance0.1732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A640E3 #7DE340
analogous
#5540E3 #A640E3 #E340CF
triadic
#A640E3 #E3A640 #40E3A6
tetradic
#A640E3 #E35540 #7DE340 #40CFE3
square
#A640E3 #E35540 #7DE340 #40CFE3
split-complementary
#A640E3 #CFE340 #40E355
monochromatic
#641693 #881DC8 #A640E3 #BF75EB #D8ABF3

Accessibility & contrast

On white

4.70
#A640E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#A640E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A640E3
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A640E3#FFFFFF#000000##FFFFFF
##A640E31.004.704.464.70
#FFFFFF4.701.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE8
Deuteranopia (green-blind)
#1875E0
Tritanopia (blue-blind)
#9D658E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #a640e3;
/* rgb */ color: rgb(166, 64, 227);
/* oklch */ color: oklch(58.7% 0.237 309.5);
Tailwind
colors: {
  custom: {
    50: '#c57eed',
    500: '#a640e3',
    950: '#000000',
  },
}
SCSS
$custom: #a640e3;
$custom-light: #c57eed;
$custom-dark: #000000;
JSON
{
  "hex": "#a640e3",
  "rgb": {
    "r": 166,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 277.546,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.58727,
    "c": 0.23722,
    "h": 309.5
  },
  "luminance": 0.1732
}

Semantic roles & 50–950 ramp

primary
#A640E3
secondary
#B7E19E
accent
#F1377C
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A640E3

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

Preview Lab → · Contrast checker → · Palette generator →

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