#A042FF#A042FF

#A042FF is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 60.3% C 0.260 H 301.4°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#A042FF
RGBrgb(160, 66, 255)
HSLhsl(270, 100%, 63%)
HSVhsv(270, 74%, 100%)
CMYKcmyk(37.3%, 74.1%, 0%, 0%)
CIE-LABlab(50.20, 71.28, -77.87)
CIE-LCHlch(50.20, 105.57, 312.47°)
OKLaboklab(60.29% 0.1358 -0.2223)
OKLCHoklch(60.29% 0.26 301.4)
XYZxyz(34.4910, 18.5898, 96.3594)
Luminance0.1859 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042FF #A1FF42
analogous
#4242FF #A042FF #FE42FF
triadic
#A042FF #FFA042 #42FFA0
tetradic
#A042FF #FF4242 #A1FF42 #42FFFE
square
#A042FF #FF4242 #A1FF42 #42FFFE
split-complementary
#A042FF #FFFE42 #42FF42
monochromatic
#6300C7 #8105FF #A042FF #BF7FFF #DEBCFF

Accessibility & contrast

On white

4.45
#A042FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#A042FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A042FF
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042FF#FFFFFF#000000##000000
##A042FF1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076FF
Deuteranopia (green-blind)
#0076FB
Tritanopia (blue-blind)
#8B739E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #a042ff;
/* rgb */ color: rgb(160, 66, 255);
/* oklch */ color: oklch(60.3% 0.260 301.4);
Tailwind
colors: {
  custom: {
    50: '#c37fff',
    500: '#a042ff',
    950: '#000000',
  },
}
SCSS
$custom: #a042ff;
$custom-light: #c37fff;
$custom-dark: #000000;
JSON
{
  "hex": "#a042ff",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 255
  },
  "hsl": {
    "h": 269.841,
    "s": 100,
    "l": 62.941
  },
  "oklch": {
    "l": 0.60288,
    "c": 0.26048,
    "h": 301.4
  },
  "luminance": 0.1859
}

Semantic roles & 50–950 ramp

primary
#A042FF
secondary
#CFF0AC
accent
#E60073
background
#FCF8FF
surface
#F9EFFF
border
#D2CAD7
text
#140B18
muted
#827C86

Preview Lab

Preview with #A042FF

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

Preview Lab → · Contrast checker → · Palette generator →

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