#A042EB#A042EB

#A042EB is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 58.8% C 0.241 H 305.4°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#A042EB
RGBrgb(160, 66, 235)
HSLhsl(273, 81%, 59%)
HSVhsv(273, 72%, 92%)
CMYKcmyk(31.9%, 71.9%, 0%, 7.8%)
CIE-LABlab(48.72, 66.82, -69.09)
CIE-LCHlch(48.72, 96.11, 314.04°)
OKLaboklab(58.78% 0.1398 -0.1965)
OKLCHoklch(58.78% 0.241 305.4)
XYZxyz(31.4375, 17.3684, 80.2774)
Luminance0.1737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042EB #8DEB42
analogous
#4C42EB #A042EB #EB42E1
triadic
#A042EB #EBA042 #42EBA0
tetradic
#A042EB #EB4C42 #8DEB42 #42E1EB
square
#A042EB #EB4C42 #8DEB42 #42E1EB
split-complementary
#A042EB #E1EB42 #42EB4C
monochromatic
#6111A2 #8317D9 #A042EB #BC79F1 #D8B1F7

Accessibility & contrast

On white

4.69
#A042EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#A042EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A042EB
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042EB#FFFFFF#000000##FFFFFF
##A042EB1.004.694.474.69
#FFFFFF4.691.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F0
Deuteranopia (green-blind)
#0074E8
Tritanopia (blue-blind)
#926B93
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #a042eb;
/* rgb */ color: rgb(160, 66, 235);
/* oklch */ color: oklch(58.8% 0.241 305.4);
Tailwind
colors: {
  custom: {
    50: '#c27ef2',
    500: '#a042eb',
    950: '#000000',
  },
}
SCSS
$custom: #a042eb;
$custom-light: #c27ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#a042eb",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 235
  },
  "hsl": {
    "h": 273.373,
    "s": 80.861,
    "l": 59.02
  },
  "oklch": {
    "l": 0.58779,
    "c": 0.24113,
    "h": 305.4
  },
  "luminance": 0.17368
}

Semantic roles & 50–950 ramp

primary
#A042EB
secondary
#C1E6A3
accent
#F73189
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B17
muted
#827C85

Preview Lab

Preview with #A042EB

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

Preview Lab → · Contrast checker → · Palette generator →

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