#A242D5#A242D5

#A242D5 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.5% C 0.220 H 311.3°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#A242D5
RGBrgb(162, 66, 213)
HSLhsl(279, 64%, 55%)
HSVhsv(279, 69%, 84%)
CMYKcmyk(23.9%, 69%, 0%, 16.5%)
CIE-LABlab(47.47, 62.46, -58.60)
CIE-LCHlch(47.47, 85.65, 316.83°)
OKLaboklab(57.47% 0.1455 -0.1656)
OKLCHoklch(57.47% 0.22 311.3)
XYZxyz(28.8565, 16.3826, 64.5799)
Luminance0.1638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A242D5 #75D542
analogous
#5942D5 #A242D5 #D542BE
triadic
#A242D5 #D5A242 #42D5A2
tetradic
#A242D5 #D55942 #75D542 #42BED5
square
#A242D5 #D55942 #75D542 #42BED5
split-complementary
#A242D5 #BED542 #42D559
monochromatic
#5E1C80 #8228B2 #A242D5 #BB74E0 #D3A6EB

Accessibility & contrast

On white

4.91
#A242D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#A242D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A242D5
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A242D5#FFFFFF#000000##FFFFFF
##A242D51.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD9
Deuteranopia (green-blind)
#2F72D2
Tritanopia (blue-blind)
#9C6187
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a242d5;
/* rgb */ color: rgb(162, 66, 213);
/* oklch */ color: oklch(57.5% 0.220 311.3);
Tailwind
colors: {
  custom: {
    50: '#c27ee3',
    500: '#a242d5',
    950: '#000000',
  },
}
SCSS
$custom: #a242d5;
$custom-light: #c27ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#a242d5",
  "rgb": {
    "r": 162,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 279.184,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.5747,
    "c": 0.22043,
    "h": 311.3
  },
  "luminance": 0.16382
}

Semantic roles & 50–950 ramp

primary
#A242D5
secondary
#B0D89A
accent
#E7417B
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A15
muted
#827C84

Preview Lab

Preview with #A242D5

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

Preview Lab → · Contrast checker → · Palette generator →

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