#A42FD8#A42FD8

#A42FD8 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 56.2% C 0.244 H 312.5°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#A42FD8
RGBrgb(164, 47, 216)
HSLhsl(282, 68%, 52%)
HSVhsv(282, 78%, 85%)
CMYKcmyk(24.1%, 78.2%, 0%, 15.3%)
CIE-LABlab(45.48, 70.54, -63.54)
CIE-LCHlch(45.48, 94.93, 317.99°)
OKLaboklab(56.18% 0.1648 -0.1799)
OKLCHoklch(56.18% 0.244 312.5)
XYZxyz(28.7188, 14.8843, 66.3125)
Luminance0.1488 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42FD8 #63D82F
analogous
#502FD8 #A42FD8 #D82FB8
triadic
#A42FD8 #D8A42F #2FD8A4
tetradic
#A42FD8 #D8502F #63D82F #2FB8D8
square
#A42FD8 #D8502F #63D82F #2FB8D8
split-complementary
#A42FD8 #B8D82F #2FD850
monochromatic
#591676 #7F20AA #A42FD8 #BB63E2 #D196EB

Accessibility & contrast

On white

5.28
#A42FD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#A42FD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42FD8
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42FD8#FFFFFF#000000##FFFFFF
##A42FD81.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DD
Deuteranopia (green-blind)
#0E6ED5
Tritanopia (blue-blind)
#9E5884
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a42fd8;
/* rgb */ color: rgb(164, 47, 216);
/* oklch */ color: oklch(56.2% 0.244 312.5);
Tailwind
colors: {
  custom: {
    50: '#c475e5',
    500: '#a42fd8',
    950: '#000000',
  },
}
SCSS
$custom: #a42fd8;
$custom-light: #c475e5;
$custom-dark: #000000;
JSON
{
  "hex": "#a42fd8",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 216
  },
  "hsl": {
    "h": 281.538,
    "s": 68.421,
    "l": 51.569
  },
  "oklch": {
    "l": 0.56179,
    "c": 0.24399,
    "h": 312.5
  },
  "luminance": 0.14883
}

Semantic roles & 50–950 ramp

primary
#A42FD8
secondary
#A3D78C
accent
#EB3D72
background
#FCF7FE
surface
#F9EEFC
border
#D2C9D5
text
#130916
muted
#827B84

Preview Lab

Preview with #A42FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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