#A042D7#A042D7

#A042D7 is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.4% C 0.222 H 310.1°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#A042D7
RGBrgb(160, 66, 215)
HSLhsl(278, 65%, 55%)
HSVhsv(278, 69%, 84%)
CMYKcmyk(25.6%, 69.3%, 0%, 15.7%)
CIE-LABlab(47.34, 62.48, -59.98)
CIE-LCHlch(47.34, 86.61, 316.17°)
OKLaboklab(57.36% 0.1427 -0.1697)
OKLCHoklch(57.36% 0.222 310.1)
XYZxyz(28.7088, 16.2769, 65.9062)
Luminance0.1628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042D7 #79D742
analogous
#5542D7 #A042D7 #D742C4
triadic
#A042D7 #D7A042 #42D7A0
tetradic
#A042D7 #D75542 #79D742 #42C4D7
square
#A042D7 #D75542 #79D742 #42C4D7
split-complementary
#A042D7 #C4D742 #42D755
monochromatic
#5D1C83 #8126B5 #A042D7 #B975E2 #D3A7EC

Accessibility & contrast

On white

4.94
#A042D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#A042D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A042D7
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042D7#FFFFFF#000000##FFFFFF
##A042D71.004.944.264.94
#FFFFFF4.941.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDB
Deuteranopia (green-blind)
#2872D4
Tritanopia (blue-blind)
#986288
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #a042d7;
/* rgb */ color: rgb(160, 66, 215);
/* oklch */ color: oklch(57.4% 0.222 310.1);
Tailwind
colors: {
  custom: {
    50: '#c17ee4',
    500: '#a042d7',
    950: '#000000',
  },
}
SCSS
$custom: #a042d7;
$custom-light: #c17ee4;
$custom-dark: #000000;
JSON
{
  "hex": "#a042d7",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 277.852,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.57358,
    "c": 0.22175,
    "h": 310.1
  },
  "luminance": 0.16276
}

Semantic roles & 50–950 ramp

primary
#A042D7
secondary
#B2DA9B
accent
#E8407E
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A042D7

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

Preview Lab → · Contrast checker → · Palette generator →

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