#A242BB#A242BB

#A242BB is a mid, vivid purple. Relative luminance 0.152; OKLCH L 55.8% C 0.196 H 318.7°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#A242BB
RGBrgb(162, 66, 187)
HSLhsl(288, 48%, 50%)
HSVhsv(288, 65%, 73%)
CMYKcmyk(13.4%, 64.7%, 0%, 26.7%)
CIE-LABlab(45.86, 57.17, -46.16)
CIE-LCHlch(45.86, 73.47, 321.08°)
OKLaboklab(55.8% 0.1471 -0.1291)
OKLCHoklch(55.8% 0.196 318.7)
XYZxyz(25.8169, 15.1668, 48.5717)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A242BB #5BBB42
analogous
#6542BB #A242BB #BB4298
triadic
#A242BB #BBA242 #42BBA2
tetradic
#A242BB #BB6542 #5BBB42 #4298BB
square
#A242BB #BB6542 #5BBB42 #4298BB
split-complementary
#A242BB #98BB42 #42BB65
monochromatic
#542261 #7B328E #A242BB #B96ECC #CF9CDC

Accessibility & contrast

On white

5.21
#A242BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#A242BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A242BB
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A242BB#FFFFFF#000000##FFFFFF
##A242BB1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A66BF
Deuteranopia (green-blind)
#4970B8
Tritanopia (blue-blind)
#A25779
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a242bb;
/* rgb */ color: rgb(162, 66, 187);
/* oklch */ color: oklch(55.8% 0.196 318.7);
Tailwind
colors: {
  custom: {
    50: '#c17dd0',
    500: '#a242bb',
    950: '#000000',
  },
}
SCSS
$custom: #a242bb;
$custom-light: #c17dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#a242bb",
  "rgb": {
    "r": 162,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 287.603,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.55799,
    "c": 0.19571,
    "h": 318.7
  },
  "luminance": 0.15166
}

Semantic roles & 50–950 ramp

primary
#A242BB
secondary
#9CC891
accent
#D7506C
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A242BB

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

Preview Lab → · Contrast checker → · Palette generator →

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