#A42FC4#A42FC4

#A42FC4 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.8% C 0.227 H 317.8°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#A42FC4
RGBrgb(164, 47, 196)
HSLhsl(287, 61%, 48%)
HSVhsv(287, 76%, 77%)
CMYKcmyk(16.3%, 76%, 0%, 23.1%)
CIE-LABlab(44.11, 66.69, -54.20)
CIE-LCHlch(44.11, 85.94, 320.90°)
OKLaboklab(54.78% 0.1681 -0.1525)
OKLCHoklch(54.78% 0.227 317.8)
XYZxyz(26.2887, 13.9123, 53.5144)
Luminance0.1391 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42FC4 #4FC42F
analogous
#592FC4 #A42FC4 #C42F9A
triadic
#A42FC4 #C4A42F #2FC4A4
tetradic
#A42FC4 #C4592F #4FC42F #2F9AC4
square
#A42FC4 #C4592F #4FC42F #2F9AC4
split-complementary
#A42FC4 #9AC42F #2FC459
monochromatic
#511761 #7B2393 #A42FC4 #BC59D7 #D08AE3

Accessibility & contrast

On white

5.55
#A42FC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#A42FC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42FC4
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42FC4#FFFFFF#000000##FFFFFF
##A42FC41.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C8
Deuteranopia (green-blind)
#356CC1
Tritanopia (blue-blind)
#A34F78
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #a42fc4;
/* rgb */ color: rgb(164, 47, 196);
/* oklch */ color: oklch(54.8% 0.227 317.8);
Tailwind
colors: {
  custom: {
    50: '#c374d7',
    500: '#a42fc4',
    950: '#000000',
  },
}
SCSS
$custom: #a42fc4;
$custom-light: #c374d7;
$custom-dark: #000000;
JSON
{
  "hex": "#a42fc4",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 196
  },
  "hsl": {
    "h": 287.114,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.54782,
    "c": 0.22696,
    "h": 317.8
  },
  "luminance": 0.13911
}

Semantic roles & 50–950 ramp

primary
#A42FC4
secondary
#92CD82
accent
#E44366
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #A42FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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