#A542E2#A542E2

#A542E2 is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 58.7% C 0.234 H 309.2°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#A542E2
RGBrgb(165, 66, 226)
HSLhsl(277, 73%, 57%)
HSVhsv(277, 71%, 89%)
CMYKcmyk(27%, 70.8%, 0%, 11.4%)
CIE-LABlab(48.74, 65.80, -63.94)
CIE-LCHlch(48.74, 91.75, 315.83°)
OKLaboklab(58.74% 0.1477 -0.1811)
OKLCHoklch(58.74% 0.234 309.2)
XYZxyz(31.1900, 17.3873, 73.6498)
Luminance0.1739 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A542E2 #7FE242
analogous
#5542E2 #A542E2 #E242CF
triadic
#A542E2 #E2A542 #42E2A5
tetradic
#A542E2 #E25542 #7FE242 #42CFE2
square
#A542E2 #E25542 #7FE242 #42CFE2
split-complementary
#A542E2 #CFE242 #42E255
monochromatic
#641793 #881FC8 #A542E2 #BE77EA #D8ACF2

Accessibility & contrast

On white

4.69
#A542E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#A542E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A542E2
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A542E2#FFFFFF#000000##FFFFFF
##A542E21.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E7
Deuteranopia (green-blind)
#1C75DF
Tritanopia (blue-blind)
#9C668E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #a542e2;
/* rgb */ color: rgb(165, 66, 226);
/* oklch */ color: oklch(58.7% 0.234 309.2);
Tailwind
colors: {
  custom: {
    50: '#c57fec',
    500: '#a542e2',
    950: '#000000',
  },
}
SCSS
$custom: #a542e2;
$custom-light: #c57fec;
$custom-dark: #000000;
JSON
{
  "hex": "#a542e2",
  "rgb": {
    "r": 165,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 277.125,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.58736,
    "c": 0.23375,
    "h": 309.2
  },
  "luminance": 0.17387
}

Semantic roles & 50–950 ramp

primary
#A542E2
secondary
#B8E09F
accent
#F0387E
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A542E2

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

Preview Lab → · Contrast checker → · Palette generator →

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