#A242DC#A242DC

#A242DC is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 58.0% C 0.227 H 309.6°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#A242DC
RGBrgb(162, 66, 220)
HSLhsl(277, 69%, 56%)
HSVhsv(277, 70%, 86%)
CMYKcmyk(26.4%, 70%, 0%, 13.7%)
CIE-LABlab(47.94, 63.94, -61.85)
CIE-LCHlch(47.94, 88.96, 315.95°)
OKLaboklab(57.95% 0.1447 -0.1751)
OKLCHoklch(57.95% 0.227 309.6)
XYZxyz(29.7642, 16.7457, 69.3606)
Luminance0.1674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A242DC #7CDC42
analogous
#5542DC #A242DC #DC42C9
triadic
#A242DC #DCA242 #42DCA2
tetradic
#A242DC #DC5542 #7CDC42 #42C9DC
square
#A242DC #DC5542 #7CDC42 #42C9DC
split-complementary
#A242DC #C9DC42 #42DC55
monochromatic
#601A8A #8323BE #A242DC #BB76E6 #D5A9EF

Accessibility & contrast

On white

4.83
#A242DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#A242DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A242DC
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A242DC#FFFFFF#000000##FFFFFF
##A242DC1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE0
Deuteranopia (green-blind)
#2373D9
Tritanopia (blue-blind)
#9A648B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a242dc;
/* rgb */ color: rgb(162, 66, 220);
/* oklch */ color: oklch(58.0% 0.227 309.6);
Tailwind
colors: {
  custom: {
    50: '#c27ee8',
    500: '#a242dc',
    950: '#000000',
  },
}
SCSS
$custom: #a242dc;
$custom-light: #c27ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#a242dc",
  "rgb": {
    "r": 162,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 277.403,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5795,
    "c": 0.22715,
    "h": 309.6
  },
  "luminance": 0.16745
}

Semantic roles & 50–950 ramp

primary
#A242DC
secondary
#B5DD9D
accent
#EC3C7E
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A242DC

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

Preview Lab → · Contrast checker → · Palette generator →

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