#A242BD#A242BD

#A242BD is a mid, vivid purple. Relative luminance 0.153; OKLCH L 55.9% C 0.198 H 318.1°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#A242BD
RGBrgb(162, 66, 189)
HSLhsl(287, 48%, 50%)
HSVhsv(287, 65%, 74%)
CMYKcmyk(14.3%, 65.1%, 0%, 25.9%)
CIE-LABlab(45.98, 57.56, -47.14)
CIE-LCHlch(45.98, 74.40, 320.68°)
OKLaboklab(55.92% 0.147 -0.132)
OKLCHoklch(55.92% 0.198 318.1)
XYZxyz(26.0325, 15.2530, 49.7071)
Luminance0.1525 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A242BD #5DBD42
analogous
#6442BD #A242BD #BD429B
triadic
#A242BD #BDA242 #42BDA2
tetradic
#A242BD #BD6442 #5DBD42 #429BBD
square
#A242BD #BD6442 #5DBD42 #429BBD
split-complementary
#A242BD #9BBD42 #42BD64
monochromatic
#542262 #7B3290 #A242BD #B86FCD #CF9DDD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A242BD#FFFFFF#000000##FFFFFF
##A242BD1.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)
#1667C1
Deuteranopia (green-blind)
#4770BA
Tritanopia (blue-blind)
#A1587A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a242bd;
/* rgb */ color: rgb(162, 66, 189);
/* oklch */ color: oklch(55.9% 0.198 318.1);
Tailwind
colors: {
  custom: {
    50: '#c17dd1',
    500: '#a242bd',
    950: '#000000',
  },
}
SCSS
$custom: #a242bd;
$custom-light: #c17dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#a242bd",
  "rgb": {
    "r": 162,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 286.829,
    "s": 48.235,
    "l": 50
  },
  "oklch": {
    "l": 0.55921,
    "c": 0.19758,
    "h": 318.1
  },
  "luminance": 0.15252
}

Semantic roles & 50–950 ramp

primary
#A242BD
secondary
#9EC992
accent
#D8506E
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A242BD

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

Preview Lab → · Contrast checker → · Palette generator →

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