#A42FDF#A42FDF

#A42FDF is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.7% C 0.250 H 310.8°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#A42FDF
RGBrgb(164, 47, 223)
HSLhsl(280, 73%, 53%)
HSVhsv(280, 79%, 87%)
CMYKcmyk(26.5%, 78.9%, 0%, 12.5%)
CIE-LABlab(45.98, 71.92, -66.72)
CIE-LCHlch(45.98, 98.10, 317.15°)
OKLaboklab(56.69% 0.1634 -0.1892)
OKLCHoklch(56.69% 0.25 310.8)
XYZxyz(29.6431, 15.2540, 71.1805)
Luminance0.1525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42FDF #6ADF2F
analogous
#4C2FDF #A42FDF #DF2FC2
triadic
#A42FDF #DFA42F #2FDFA4
tetradic
#A42FDF #DF4C2F #6ADF2F #2FC2DF
square
#A42FDF #DF4C2F #6ADF2F #2FC2DF
split-complementary
#A42FDF #C2DF2F #2FDF4C
monochromatic
#5C1480 #821CB5 #A42FDF #BB64E7 #D299EF

Accessibility & contrast

On white

5.18
#A42FDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#A42FDF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42FDF
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42FDF#FFFFFF#000000##FFFFFF
##A42FDF1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E4
Deuteranopia (green-blind)
#006FDB
Tritanopia (blue-blind)
#9C5C88
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a42fdf;
/* rgb */ color: rgb(164, 47, 223);
/* oklch */ color: oklch(56.7% 0.250 310.8);
Tailwind
colors: {
  custom: {
    50: '#c576ea',
    500: '#a42fdf',
    950: '#000000',
  },
}
SCSS
$custom: #a42fdf;
$custom-light: #c576ea;
$custom-dark: #000000;
JSON
{
  "hex": "#a42fdf",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 223
  },
  "hsl": {
    "h": 279.886,
    "s": 73.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.56691,
    "c": 0.25,
    "h": 310.8
  },
  "luminance": 0.15253
}

Semantic roles & 50–950 ramp

primary
#A42FDF
secondary
#A8DB8F
accent
#F03876
background
#FCF7FE
surface
#F9EEFD
border
#D2C9D5
text
#140916
muted
#827B84

Preview Lab

Preview with #A42FDF

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

Preview Lab → · Contrast checker → · Palette generator →

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