#A242BA#A242BA

#A242BA is a mid, vivid purple. Relative luminance 0.151; OKLCH L 55.7% C 0.195 H 319.0°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#A242BA
RGBrgb(162, 66, 186)
HSLhsl(288, 48%, 49%)
HSVhsv(288, 65%, 73%)
CMYKcmyk(12.9%, 64.5%, 0%, 27.1%)
CIE-LABlab(45.80, 56.97, -45.67)
CIE-LCHlch(45.80, 73.01, 321.28°)
OKLaboklab(55.74% 0.1471 -0.1277)
OKLCHoklch(55.74% 0.195 319)
XYZxyz(25.7103, 15.1241, 48.0098)
Luminance0.1512 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A242BA #5ABA42
analogous
#6642BA #A242BA #BA4296
triadic
#A242BA #BAA242 #42BAA2
tetradic
#A242BA #BA6642 #5ABA42 #4296BA
square
#A242BA #BA6642 #5ABA42 #4296BA
split-complementary
#A242BA #96BA42 #42BA66
monochromatic
#532260 #7B328D #A242BA #B96ECB #CF9BDB

Accessibility & contrast

On white

5.22
#A242BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#A242BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A242BA
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A242BA#FFFFFF#000000##FFFFFF
##A242BA1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C66BE
Deuteranopia (green-blind)
#4A70B7
Tritanopia (blue-blind)
#A25778
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a242ba;
/* rgb */ color: rgb(162, 66, 186);
/* oklch */ color: oklch(55.7% 0.195 319.0);
Tailwind
colors: {
  custom: {
    50: '#c17dcf',
    500: '#a242ba',
    950: '#000000',
  },
}
SCSS
$custom: #a242ba;
$custom-light: #c17dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#a242ba",
  "rgb": {
    "r": 162,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 288,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.55738,
    "c": 0.19477,
    "h": 319
  },
  "luminance": 0.15123
}

Semantic roles & 50–950 ramp

primary
#A242BA
secondary
#9BC890
accent
#D7516C
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A242BA

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

Preview Lab → · Contrast checker → · Palette generator →

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