#A42FB2#A42FB2

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

Color values

HEX#A42FB2
RGBrgb(164, 47, 178)
HSLhsl(294, 58%, 44%)
HSVhsv(294, 74%, 70%)
CMYKcmyk(7.9%, 73.6%, 0%, 30.2%)
CIE-LABlab(42.98, 63.40, -45.47)
CIE-LCHlch(42.98, 78.02, 324.36°)
OKLaboklab(53.62% 0.1698 -0.1269)
OKLCHoklch(53.62% 0.212 323.2)
XYZxyz(24.3615, 13.1414, 43.3642)
Luminance0.1314 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42FB2 #3DB22F
analogous
#632FB2 #A42FB2 #B22F7F
triadic
#A42FB2 #B2A42F #2FB2A4
tetradic
#A42FB2 #B2632F #3DB22F #2F7FB2
square
#A42FB2 #B2632F #3DB22F #2F7FB2
split-complementary
#A42FB2 #7FB22F #2FB263
monochromatic
#4B1551 #772282 #A42FB2 #C24ED0 #D37EDD

Accessibility & contrast

On white

5.79
#A42FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#A42FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42FB2
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42FB2#FFFFFF#000000##FFFFFF
##A42FB21.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#456AAF
Tritanopia (blue-blind)
#A7476E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #a42fb2;
/* rgb */ color: rgb(164, 47, 178);
/* oklch */ color: oklch(53.6% 0.212 323.2);
Tailwind
colors: {
  custom: {
    50: '#c374ca',
    500: '#a42fb2',
    950: '#000000',
  },
}
SCSS
$custom: #a42fb2;
$custom-light: #c374ca;
$custom-dark: #000000;
JSON
{
  "hex": "#a42fb2",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 293.588,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.53618,
    "c": 0.21197,
    "h": 323.2
  },
  "luminance": 0.1314
}

Semantic roles & 50–950 ramp

primary
#A42FB2
secondary
#7FC677
accent
#E14657
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A42FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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