#A042E2#A042E2

#A042E2 is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 58.1% C 0.232 H 307.4°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#A042E2
RGBrgb(160, 66, 226)
HSLhsl(275, 73%, 57%)
HSVhsv(275, 71%, 89%)
CMYKcmyk(29.2%, 70.8%, 0%, 11.4%)
CIE-LABlab(48.08, 64.85, -65.03)
CIE-LCHlch(48.08, 91.84, 314.92°)
OKLaboklab(58.13% 0.1413 -0.1845)
OKLCHoklch(58.13% 0.232 307.4)
XYZxyz(30.1700, 16.8614, 73.6020)
Luminance0.1686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042E2 #84E242
analogous
#5042E2 #A042E2 #E242D4
triadic
#A042E2 #E2A042 #42E2A0
tetradic
#A042E2 #E25042 #84E242 #42D4E2
square
#A042E2 #E25042 #84E242 #42D4E2
split-complementary
#A042E2 #D4E242 #42E250
monochromatic
#601793 #821FC8 #A042E2 #BB77EA #D5ACF2

Accessibility & contrast

On white

4.80
#A042E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#A042E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A042E2
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042E2#FFFFFF#000000##FFFFFF
##A042E21.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE7
Deuteranopia (green-blind)
#0973DF
Tritanopia (blue-blind)
#95678E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a042e2;
/* rgb */ color: rgb(160, 66, 226);
/* oklch */ color: oklch(58.1% 0.232 307.4);
Tailwind
colors: {
  custom: {
    50: '#c17eec',
    500: '#a042e2',
    950: '#000000',
  },
}
SCSS
$custom: #a042e2;
$custom-light: #c17eec;
$custom-dark: #000000;
JSON
{
  "hex": "#a042e2",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 275.25,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.58128,
    "c": 0.23241,
    "h": 307.4
  },
  "luminance": 0.16861
}

Semantic roles & 50–950 ramp

primary
#A042E2
secondary
#BAE09F
accent
#F03884
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A042E2

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

Preview Lab → · Contrast checker → · Palette generator →

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