#A742DD#A742DD

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

Color values

HEX#A742DD
RGBrgb(167, 66, 221)
HSLhsl(279, 70%, 56%)
HSVhsv(279, 70%, 87%)
CMYKcmyk(24.4%, 70.1%, 0%, 13.3%)
CIE-LABlab(48.68, 65.15, -61.19)
CIE-LCHlch(48.68, 89.38, 316.79°)
OKLaboklab(58.64% 0.1509 -0.173)
OKLCHoklch(58.64% 0.23 311.1)
XYZxyz(30.9332, 17.3331, 70.1087)
Luminance0.1733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A742DD #78DD42
analogous
#5A42DD #A742DD #DD42C6
triadic
#A742DD #DDA742 #42DDA7
tetradic
#A742DD #DD5A42 #78DD42 #42C6DD
square
#A742DD #DD5A42 #78DD42 #42C6DD
split-complementary
#A742DD #C6DD42 #42DD5A
monochromatic
#64198C #8922BF #A742DD #BF76E6 #D7AAF0

Accessibility & contrast

On white

4.70
#A742DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#A742DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A742DD
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A742DD#FFFFFF#000000##FFFFFF
##A742DD1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE1
Deuteranopia (green-blind)
#2B75DA
Tritanopia (blue-blind)
#A0648B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #a742dd;
/* rgb */ color: rgb(167, 66, 221);
/* oklch */ color: oklch(58.6% 0.230 311.1);
Tailwind
colors: {
  custom: {
    50: '#c67fe8',
    500: '#a742dd',
    950: '#000000',
  },
}
SCSS
$custom: #a742dd;
$custom-light: #c67fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#a742dd",
  "rgb": {
    "r": 167,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 279.097,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.58638,
    "c": 0.2296,
    "h": 311.1
  },
  "luminance": 0.17332
}

Semantic roles & 50–950 ramp

primary
#A742DD
secondary
#B4DD9D
accent
#EC3B79
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A742DD

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

Preview Lab → · Contrast checker → · Palette generator →

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