#A042DB#A042DB

#A042DB is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.6% C 0.226 H 309.1°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#A042DB
RGBrgb(160, 66, 219)
HSLhsl(277, 68%, 56%)
HSVhsv(277, 70%, 86%)
CMYKcmyk(26.9%, 69.9%, 0%, 14.1%)
CIE-LABlab(47.60, 63.33, -61.83)
CIE-LCHlch(47.60, 88.51, 315.69°)
OKLaboklab(57.64% 0.1422 -0.1751)
OKLCHoklch(57.64% 0.226 309.1)
XYZxyz(29.2290, 16.4850, 68.6463)
Luminance0.1648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042DB #7DDB42
analogous
#5342DB #A042DB #DB42C9
triadic
#A042DB #DBA042 #42DBA0
tetradic
#A042DB #DB5342 #7DDB42 #42C9DB
square
#A042DB #DB5342 #7DDB42 #42C9DB
split-complementary
#A042DB #C9DB42 #42DB53
monochromatic
#5E1A89 #8124BC #A042DB #BA75E5 #D4A9EF

Accessibility & contrast

On white

4.89
#A042DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#A042DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A042DB
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042DB#FFFFFF#000000##FFFFFF
##A042DB1.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDF
Deuteranopia (green-blind)
#2072D8
Tritanopia (blue-blind)
#97648A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a042db;
/* rgb */ color: rgb(160, 66, 219);
/* oklch */ color: oklch(57.6% 0.226 309.1);
Tailwind
colors: {
  custom: {
    50: '#c17ee7',
    500: '#a042db',
    950: '#000000',
  },
}
SCSS
$custom: #a042db;
$custom-light: #c17ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#a042db",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 276.863,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.57635,
    "c": 0.22562,
    "h": 309.1
  },
  "luminance": 0.16484
}

Semantic roles & 50–950 ramp

primary
#A042DB
secondary
#B5DC9D
accent
#EB3D80
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A042DB

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

Preview Lab → · Contrast checker → · Palette generator →

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