#A242CD#A242CD

#A242CD is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 56.9% C 0.213 H 313.4°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#A242CD
RGBrgb(162, 66, 205)
HSLhsl(281, 58%, 53%)
HSVhsv(281, 68%, 80%)
CMYKcmyk(21%, 67.8%, 0%, 19.6%)
CIE-LABlab(46.96, 60.80, -54.84)
CIE-LCHlch(46.96, 81.88, 317.95°)
OKLaboklab(56.94% 0.1463 -0.1545)
OKLCHoklch(56.94% 0.213 313.4)
XYZxyz(27.8660, 15.9864, 59.3636)
Luminance0.1599 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A242CD #6DCD42
analogous
#5C42CD #A242CD #CD42B2
triadic
#A242CD #CDA242 #42CDA2
tetradic
#A242CD #CD5C42 #6DCD42 #42B2CD
square
#A242CD #CD5C42 #6DCD42 #42B2CD
split-complementary
#A242CD #B2CD42 #42CD5C
monochromatic
#5B1F76 #802CA6 #A242CD #BA72DA #D2A3E7

Accessibility & contrast

On white

5.00
#A242CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#A242CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A242CD
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A242CD#FFFFFF#000000##FFFFFF
##A242CD1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD1
Deuteranopia (green-blind)
#3972CA
Tritanopia (blue-blind)
#9E5E82
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a242cd;
/* rgb */ color: rgb(162, 66, 205);
/* oklch */ color: oklch(56.9% 0.213 313.4);
Tailwind
colors: {
  custom: {
    50: '#c17edd',
    500: '#a242cd',
    950: '#000000',
  },
}
SCSS
$custom: #a242cd;
$custom-light: #c17edd;
$custom-dark: #000000;
JSON
{
  "hex": "#a242cd",
  "rgb": {
    "r": 162,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 281.439,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56937,
    "c": 0.21277,
    "h": 313.4
  },
  "luminance": 0.15986
}

Semantic roles & 50–950 ramp

primary
#A242CD
secondary
#AAD397
accent
#E14676
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A242CD

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

Preview Lab → · Contrast checker → · Palette generator →

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