#A042EA#A042EA

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

Color values

HEX#A042EA
RGBrgb(160, 66, 234)
HSLhsl(274, 80%, 59%)
HSVhsv(274, 72%, 92%)
CMYKcmyk(31.6%, 71.8%, 0%, 8.2%)
CIE-LABlab(48.65, 66.60, -68.64)
CIE-LCHlch(48.65, 95.64, 314.13°)
OKLaboklab(58.71% 0.14 -0.1951)
OKLCHoklch(58.71% 0.24 305.7)
XYZxyz(31.2934, 17.3108, 79.5187)
Luminance0.1731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042EA #8CEA42
analogous
#4C42EA #A042EA #EA42E0
triadic
#A042EA #EAA042 #42EAA0
tetradic
#A042EA #EA4C42 #8CEA42 #42E0EA
square
#A042EA #EA4C42 #8CEA42 #42E0EA
split-complementary
#A042EA #E0EA42 #42EA4C
monochromatic
#6112A0 #8318D7 #A042EA #BC79F0 #D7B0F6

Accessibility & contrast

On white

4.71
#A042EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A042EA
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042EA#FFFFFF#000000##FFFFFF
##A042EA1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EF
Deuteranopia (green-blind)
#0074E7
Tritanopia (blue-blind)
#936A92
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #a042ea;
/* rgb */ color: rgb(160, 66, 234);
/* oklch */ color: oklch(58.7% 0.240 305.7);
Tailwind
colors: {
  custom: {
    50: '#c27ef2',
    500: '#a042ea',
    950: '#000000',
  },
}
SCSS
$custom: #a042ea;
$custom-light: #c27ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#a042ea",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 234
  },
  "hsl": {
    "h": 273.571,
    "s": 80,
    "l": 58.824
  },
  "oklch": {
    "l": 0.58706,
    "c": 0.24016,
    "h": 305.7
  },
  "luminance": 0.17311
}

Semantic roles & 50–950 ramp

primary
#A042EA
secondary
#C0E5A3
accent
#F63188
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B17
muted
#827C85

Preview Lab

Preview with #A042EA

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

Preview Lab → · Contrast checker → · Palette generator →

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