#A742DC#A742DC

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

Color values

HEX#A742DC
RGBrgb(167, 66, 220)
HSLhsl(279, 69%, 56%)
HSVhsv(279, 70%, 86%)
CMYKcmyk(24.1%, 70%, 0%, 13.7%)
CIE-LABlab(48.61, 64.94, -60.73)
CIE-LCHlch(48.61, 88.91, 316.92°)
OKLaboklab(58.57% 0.1511 -0.1717)
OKLCHoklch(58.57% 0.229 311.3)
XYZxyz(30.8004, 17.2800, 69.4091)
Luminance0.1728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A742DC #77DC42
analogous
#5A42DC #A742DC #DC42C4
triadic
#A742DC #DCA742 #42DCA7
tetradic
#A742DC #DC5A42 #77DC42 #42C4DC
square
#A742DC #DC5A42 #77DC42 #42C4DC
split-complementary
#A742DC #C4DC42 #42DC5A
monochromatic
#631A8A #8823BE #A742DC #BF76E6 #D7A9EF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A742DC#FFFFFF#000000##FFFFFF
##A742DC1.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)
#006FE0
Deuteranopia (green-blind)
#2C75D9
Tritanopia (blue-blind)
#A0638B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a742dc;
/* rgb */ color: rgb(167, 66, 220);
/* oklch */ color: oklch(58.6% 0.229 311.3);
Tailwind
colors: {
  custom: {
    50: '#c67fe8',
    500: '#a742dc',
    950: '#000000',
  },
}
SCSS
$custom: #a742dc;
$custom-light: #c67fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#a742dc",
  "rgb": {
    "r": 167,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 279.351,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5857,
    "c": 0.22866,
    "h": 311.3
  },
  "luminance": 0.17279
}

Semantic roles & 50–950 ramp

primary
#A742DC
secondary
#B3DD9D
accent
#EC3C79
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A742DC

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

Preview Lab → · Contrast checker → · Palette generator →

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