#A42FB4#A42FB4

#A42FB4 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.7% C 0.214 H 322.6°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#A42FB4
RGBrgb(164, 47, 180)
HSLhsl(293, 59%, 45%)
HSVhsv(293, 74%, 71%)
CMYKcmyk(8.9%, 73.9%, 0%, 29.4%)
CIE-LABlab(43.10, 63.76, -46.45)
CIE-LCHlch(43.10, 78.89, 323.92°)
OKLaboklab(53.74% 0.1697 -0.1298)
OKLCHoklch(53.74% 0.214 322.6)
XYZxyz(24.5637, 13.2223, 44.4295)
Luminance0.1322 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42FB4 #3FB42F
analogous
#622FB4 #A42FB4 #B42F82
triadic
#A42FB4 #B4A42F #2FB4A4
tetradic
#A42FB4 #B4622F #3FB42F #2F82B4
square
#A42FB4 #B4622F #3FB42F #2F82B4
split-complementary
#A42FB4 #82B42F #2FB462
monochromatic
#4C1653 #782283 #A42FB4 #C14FD1 #D280DE

Accessibility & contrast

On white

5.76
#A42FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#A42FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42FB4
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42FB4#FFFFFF#000000##FFFFFF
##A42FB41.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB8
Deuteranopia (green-blind)
#436AB1
Tritanopia (blue-blind)
#A6486F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #a42fb4;
/* rgb */ color: rgb(164, 47, 180);
/* oklch */ color: oklch(53.7% 0.214 322.6);
Tailwind
colors: {
  custom: {
    50: '#c374cb',
    500: '#a42fb4',
    950: '#000000',
  },
}
SCSS
$custom: #a42fb4;
$custom-light: #c374cb;
$custom-dark: #000000;
JSON
{
  "hex": "#a42fb4",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 292.782,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.53742,
    "c": 0.21361,
    "h": 322.6
  },
  "luminance": 0.13221
}

Semantic roles & 50–950 ramp

primary
#A42FB4
secondary
#82C778
accent
#E24659
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A42FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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