#A542D7#A542D7

#A542D7 is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 58.0% C 0.223 H 311.9°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#A542D7
RGBrgb(165, 66, 215)
HSLhsl(280, 65%, 55%)
HSVhsv(280, 69%, 84%)
CMYKcmyk(23.3%, 69.3%, 0%, 15.7%)
CIE-LABlab(48.01, 63.50, -58.86)
CIE-LCHlch(48.01, 86.58, 317.17°)
OKLaboklab(57.98% 0.1491 -0.1662)
OKLCHoklch(57.98% 0.223 311.9)
XYZxyz(29.7288, 16.8028, 65.9540)
Luminance0.1680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A542D7 #74D742
analogous
#5B42D7 #A542D7 #D742BE
triadic
#A542D7 #D7A542 #42D7A5
tetradic
#A542D7 #D75B42 #74D742 #42BED7
square
#A542D7 #D75B42 #74D742 #42BED7
split-complementary
#A542D7 #BED742 #42D75B
monochromatic
#601C83 #8526B5 #A542D7 #BD75E2 #D5A7EC

Accessibility & contrast

On white

4.82
#A542D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#A542D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A542D7
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A542D7#FFFFFF#000000##FFFFFF
##A542D71.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDB
Deuteranopia (green-blind)
#3174D4
Tritanopia (blue-blind)
#9F6288
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a542d7;
/* rgb */ color: rgb(165, 66, 215);
/* oklch */ color: oklch(58.0% 0.223 311.9);
Tailwind
colors: {
  custom: {
    50: '#c47ee4',
    500: '#a542d7',
    950: '#000000',
  },
}
SCSS
$custom: #a542d7;
$custom-light: #c47ee4;
$custom-dark: #000000;
JSON
{
  "hex": "#a542d7",
  "rgb": {
    "r": 165,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 279.866,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.57981,
    "c": 0.2233,
    "h": 311.9
  },
  "luminance": 0.16802
}

Semantic roles & 50–950 ramp

primary
#A542D7
secondary
#B0DA9B
accent
#E84078
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A542D7

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

Preview Lab → · Contrast checker → · Palette generator →

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