#A242CA#A242CA

#A242CA is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.7% C 0.210 H 314.2°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#A242CA
RGBrgb(162, 66, 202)
HSLhsl(282, 56%, 53%)
HSVhsv(282, 67%, 79%)
CMYKcmyk(19.8%, 67.3%, 0%, 20.8%)
CIE-LABlab(46.77, 60.18, -53.41)
CIE-LCHlch(46.77, 80.47, 318.41°)
OKLaboklab(56.74% 0.1465 -0.1504)
OKLCHoklch(56.74% 0.21 314.2)
XYZxyz(27.5074, 15.8430, 57.4747)
Luminance0.1584 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A242CA #6ACA42
analogous
#5E42CA #A242CA #CA42AE
triadic
#A242CA #CAA242 #42CAA2
tetradic
#A242CA #CA5E42 #6ACA42 #42AECA
square
#A242CA #CA5E42 #6ACA42 #42AECA
split-complementary
#A242CA #AECA42 #42CA5E
monochromatic
#5A2072 #7F2DA2 #A242CA #BA72D7 #D1A2E5

Accessibility & contrast

On white

5.04
#A242CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#A242CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A242CA
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A242CA#FFFFFF#000000##FFFFFF
##A242CA1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACE
Deuteranopia (green-blind)
#3C71C7
Tritanopia (blue-blind)
#9E5D81
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a242ca;
/* rgb */ color: rgb(162, 66, 202);
/* oklch */ color: oklch(56.7% 0.210 314.2);
Tailwind
colors: {
  custom: {
    50: '#c17ddb',
    500: '#a242ca',
    950: '#000000',
  },
}
SCSS
$custom: #a242ca;
$custom-light: #c17ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#a242ca",
  "rgb": {
    "r": 162,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 282.353,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.56741,
    "c": 0.20991,
    "h": 314.2
  },
  "luminance": 0.15842
}

Semantic roles & 50–950 ramp

primary
#A242CA
secondary
#A8D196
accent
#DF4875
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A242CA

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

Preview Lab → · Contrast checker → · Palette generator →

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