#A840E3#A840E3

#A840E3 is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 59.0% C 0.238 H 310.2°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#A840E3
RGBrgb(168, 64, 227)
HSLhsl(278, 74%, 57%)
HSVhsv(278, 72%, 89%)
CMYKcmyk(26%, 71.8%, 0%, 11%)
CIE-LABlab(48.93, 67.39, -64.18)
CIE-LCHlch(48.93, 93.06, 316.40°)
OKLaboklab(58.98% 0.1533 -0.1818)
OKLCHoklch(58.98% 0.238 310.2)
XYZxyz(31.8443, 17.5384, 74.3659)
Luminance0.1754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A840E3 #7BE340
analogous
#5740E3 #A840E3 #E340CD
triadic
#A840E3 #E3A840 #40E3A8
tetradic
#A840E3 #E35740 #7BE340 #40CDE3
square
#A840E3 #E35740 #7BE340 #40CDE3
split-complementary
#A840E3 #CDE340 #40E357
monochromatic
#661693 #8B1DC8 #A840E3 #C075EB #D9ABF3

Accessibility & contrast

On white

4.66
#A840E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#A840E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #A840E3
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A840E3#FFFFFF#000000##FFFFFF
##A840E31.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E8
Deuteranopia (green-blind)
#1E76E0
Tritanopia (blue-blind)
#A0658E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #a840e3;
/* rgb */ color: rgb(168, 64, 227);
/* oklch */ color: oklch(59.0% 0.238 310.2);
Tailwind
colors: {
  custom: {
    50: '#c77eed',
    500: '#a840e3',
    950: '#000000',
  },
}
SCSS
$custom: #a840e3;
$custom-light: #c77eed;
$custom-dark: #000000;
JSON
{
  "hex": "#a840e3",
  "rgb": {
    "r": 168,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 278.282,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.58975,
    "c": 0.2378,
    "h": 310.2
  },
  "luminance": 0.17538
}

Semantic roles & 50–950 ramp

primary
#A840E3
secondary
#B6E19E
accent
#F1377A
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #A840E3

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

Preview Lab → · Contrast checker → · Palette generator →

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