#A242CB#A242CB

#A242CB is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 56.8% C 0.211 H 314.0°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#A242CB
RGBrgb(162, 66, 203)
HSLhsl(282, 57%, 53%)
HSVhsv(282, 67%, 80%)
CMYKcmyk(20.2%, 67.5%, 0%, 20.4%)
CIE-LABlab(46.83, 60.38, -53.89)
CIE-LCHlch(46.83, 80.94, 318.25°)
OKLaboklab(56.81% 0.1464 -0.1517)
OKLCHoklch(56.81% 0.211 314)
XYZxyz(27.6262, 15.8905, 58.1002)
Luminance0.1589 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A242CB #6BCB42
analogous
#5E42CB #A242CB #CB42AF
triadic
#A242CB #CBA242 #42CBA2
tetradic
#A242CB #CB5E42 #6BCB42 #42AFCB
square
#A242CB #CB5E42 #6BCB42 #42AFCB
split-complementary
#A242CB #AFCB42 #42CB5E
monochromatic
#5A2073 #802DA3 #A242CB #BA72D8 #D1A2E5

Accessibility & contrast

On white

5.03
#A242CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#A242CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A242CB
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A242CB#FFFFFF#000000##FFFFFF
##A242CB1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a242cb;
/* rgb */ color: rgb(162, 66, 203);
/* oklch */ color: oklch(56.8% 0.211 314.0);
Tailwind
colors: {
  custom: {
    50: '#c17edb',
    500: '#a242cb',
    950: '#000000',
  },
}
SCSS
$custom: #a242cb;
$custom-light: #c17edb;
$custom-dark: #000000;
JSON
{
  "hex": "#a242cb",
  "rgb": {
    "r": 162,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 282.044,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.56806,
    "c": 0.21086,
    "h": 314
  },
  "luminance": 0.1589
}

Semantic roles & 50–950 ramp

primary
#A242CB
secondary
#A8D297
accent
#E04875
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A242CB

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

Preview Lab → · Contrast checker → · Palette generator →

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