#A742DB#A742DB

#A742DB is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 58.5% C 0.228 H 311.6°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#A742DB
RGBrgb(167, 66, 219)
HSLhsl(280, 68%, 56%)
HSVhsv(280, 70%, 86%)
CMYKcmyk(23.7%, 69.9%, 0%, 14.1%)
CIE-LABlab(48.55, 64.73, -60.27)
CIE-LCHlch(48.55, 88.44, 317.05°)
OKLaboklab(58.5% 0.1512 -0.1703)
OKLCHoklch(58.5% 0.228 311.6)
XYZxyz(30.6684, 17.2272, 68.7137)
Luminance0.1723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A742DB #76DB42
analogous
#5A42DB #A742DB #DB42C2
triadic
#A742DB #DBA742 #42DBA7
tetradic
#A742DB #DB5A42 #76DB42 #42C2DB
square
#A742DB #DB5A42 #76DB42 #42C2DB
split-complementary
#A742DB #C2DB42 #42DB5A
monochromatic
#631A89 #8824BC #A742DB #BF75E5 #D7A9EF

Accessibility & contrast

On white

4.72
#A742DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#A742DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A742DB
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A742DB#FFFFFF#000000##FFFFFF
##A742DB1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDF
Deuteranopia (green-blind)
#2E75D8
Tritanopia (blue-blind)
#A1638A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a742db;
/* rgb */ color: rgb(167, 66, 219);
/* oklch */ color: oklch(58.5% 0.228 311.6);
Tailwind
colors: {
  custom: {
    50: '#c67fe7',
    500: '#a742db',
    950: '#000000',
  },
}
SCSS
$custom: #a742db;
$custom-light: #c67fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#a742db",
  "rgb": {
    "r": 167,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 279.608,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.58502,
    "c": 0.22772,
    "h": 311.6
  },
  "luminance": 0.17226
}

Semantic roles & 50–950 ramp

primary
#A742DB
secondary
#B2DC9D
accent
#EB3D78
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A742DB

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

Preview Lab → · Contrast checker → · Palette generator →

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