#A242BC#A242BC

#A242BC is a mid, vivid purple. Relative luminance 0.152; OKLCH L 55.9% C 0.197 H 318.4°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#A242BC
RGBrgb(162, 66, 188)
HSLhsl(287, 48%, 50%)
HSVhsv(287, 65%, 74%)
CMYKcmyk(13.8%, 64.9%, 0%, 26.3%)
CIE-LABlab(45.92, 57.36, -46.65)
CIE-LCHlch(45.92, 73.94, 320.88°)
OKLaboklab(55.86% 0.1471 -0.1305)
OKLCHoklch(55.86% 0.197 318.4)
XYZxyz(25.9244, 15.2098, 49.1374)
Luminance0.1521 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A242BC #5CBC42
analogous
#6542BC #A242BC #BC4299
triadic
#A242BC #BCA242 #42BCA2
tetradic
#A242BC #BC6542 #5CBC42 #4299BC
square
#A242BC #BC6542 #5CBC42 #4299BC
split-complementary
#A242BC #99BC42 #42BC65
monochromatic
#542261 #7B328F #A242BC #B86FCC #CF9CDC

Accessibility & contrast

On white

5.20
#A242BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#A242BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A242BC
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A242BC#FFFFFF#000000##FFFFFF
##A242BC1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1866C0
Deuteranopia (green-blind)
#4870B9
Tritanopia (blue-blind)
#A25879
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a242bc;
/* rgb */ color: rgb(162, 66, 188);
/* oklch */ color: oklch(55.9% 0.197 318.4);
Tailwind
colors: {
  custom: {
    50: '#c17dd1',
    500: '#a242bc',
    950: '#000000',
  },
}
SCSS
$custom: #a242bc;
$custom-light: #c17dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#a242bc",
  "rgb": {
    "r": 162,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 287.213,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.55859,
    "c": 0.19665,
    "h": 318.4
  },
  "luminance": 0.15209
}

Semantic roles & 50–950 ramp

primary
#A242BC
secondary
#9DC991
accent
#D8506D
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A242BC

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

Preview Lab → · Contrast checker → · Palette generator →

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