#A42FB1#A42FB1

#A42FB1 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.6% C 0.211 H 323.5°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#A42FB1
RGBrgb(164, 47, 177)
HSLhsl(294, 58%, 44%)
HSVhsv(294, 73%, 69%)
CMYKcmyk(7.3%, 73.4%, 0%, 30.6%)
CIE-LABlab(42.92, 63.23, -44.97)
CIE-LCHlch(42.92, 77.59, 324.58°)
OKLaboklab(53.56% 0.1698 -0.1255)
OKLCHoklch(53.56% 0.211 323.5)
XYZxyz(24.2614, 13.1013, 42.8374)
Luminance0.1310 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42FB1 #3CB12F
analogous
#632FB1 #A42FB1 #B12F7D
triadic
#A42FB1 #B1A42F #2FB1A4
tetradic
#A42FB1 #B1632F #3CB12F #2F7DB1
square
#A42FB1 #B1632F #3CB12F #2F7DB1
split-complementary
#A42FB1 #7DB12F #2FB163
monochromatic
#4A1550 #772281 #A42FB1 #C34DD0 #D37EDD

Accessibility & contrast

On white

5.80
#A42FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#A42FB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42FB1
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42FB1#FFFFFF#000000##FFFFFF
##A42FB11.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB5
Deuteranopia (green-blind)
#466AAE
Tritanopia (blue-blind)
#A7476E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #a42fb1;
/* rgb */ color: rgb(164, 47, 177);
/* oklch */ color: oklch(53.6% 0.211 323.5);
Tailwind
colors: {
  custom: {
    50: '#c374c9',
    500: '#a42fb1',
    950: '#000000',
  },
}
SCSS
$custom: #a42fb1;
$custom-light: #c374c9;
$custom-dark: #000000;
JSON
{
  "hex": "#a42fb1",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 294,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.53556,
    "c": 0.21115,
    "h": 323.5
  },
  "luminance": 0.131
}

Semantic roles & 50–950 ramp

primary
#A42FB1
secondary
#7EC576
accent
#E14756
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A42FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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