#A542E1#A542E1

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

Color values

HEX#A542E1
RGBrgb(165, 66, 225)
HSLhsl(277, 73%, 57%)
HSVhsv(277, 71%, 88%)
CMYKcmyk(26.7%, 70.7%, 0%, 11.8%)
CIE-LABlab(48.68, 65.59, -63.48)
CIE-LCHlch(48.68, 91.28, 315.94°)
OKLaboklab(58.67% 0.1479 -0.1798)
OKLCHoklch(58.67% 0.233 309.4)
XYZxyz(31.0532, 17.3326, 72.9292)
Luminance0.1733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A542E1 #7EE142
analogous
#5542E1 #A542E1 #E142CE
triadic
#A542E1 #E1A542 #42E1A5
tetradic
#A542E1 #E15542 #7EE142 #42CEE1
square
#A542E1 #E15542 #7EE142 #42CEE1
split-complementary
#A542E1 #CEE142 #42E155
monochromatic
#631792 #871FC6 #A542E1 #BE77E9 #D7ACF2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A542E1#FFFFFF#000000##FFFFFF
##A542E11.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)
#0070E6
Deuteranopia (green-blind)
#1F75DE
Tritanopia (blue-blind)
#9C668D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #a542e1;
/* rgb */ color: rgb(165, 66, 225);
/* oklch */ color: oklch(58.7% 0.233 309.4);
Tailwind
colors: {
  custom: {
    50: '#c57feb',
    500: '#a542e1',
    950: '#000000',
  },
}
SCSS
$custom: #a542e1;
$custom-light: #c57feb;
$custom-dark: #000000;
JSON
{
  "hex": "#a542e1",
  "rgb": {
    "r": 165,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 277.358,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.58666,
    "c": 0.2328,
    "h": 309.4
  },
  "luminance": 0.17332
}

Semantic roles & 50–950 ramp

primary
#A542E1
secondary
#B7E09F
accent
#EF387D
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A542E1

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

Preview Lab → · Contrast checker → · Palette generator →

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