#A242D9#A242D9

#A242D9 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.7% C 0.224 H 310.3°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#A242D9
RGBrgb(162, 66, 217)
HSLhsl(278, 67%, 55%)
HSVhsv(278, 70%, 85%)
CMYKcmyk(25.3%, 69.6%, 0%, 14.9%)
CIE-LABlab(47.74, 63.31, -60.46)
CIE-LCHlch(47.74, 87.54, 316.32°)
OKLaboklab(57.74% 0.1451 -0.171)
OKLCHoklch(57.74% 0.224 310.3)
XYZxyz(29.3705, 16.5882, 67.2868)
Luminance0.1659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A242D9 #79D942
analogous
#5642D9 #A242D9 #D942C4
triadic
#A242D9 #D9A242 #42D9A2
tetradic
#A242D9 #D95642 #79D942 #42C4D9
square
#A242D9 #D95642 #79D942 #42C4D9
split-complementary
#A242D9 #C4D942 #42D956
monochromatic
#5F1B86 #8325B9 #A242D9 #BB75E3 #D4A8ED

Accessibility & contrast

On white

4.86
#A242D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#A242D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A242D9
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A242D9#FFFFFF#000000##FFFFFF
##A242D91.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDD
Deuteranopia (green-blind)
#2873D6
Tritanopia (blue-blind)
#9A6389
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a242d9;
/* rgb */ color: rgb(162, 66, 217);
/* oklch */ color: oklch(57.7% 0.224 310.3);
Tailwind
colors: {
  custom: {
    50: '#c27ee6',
    500: '#a242d9',
    950: '#000000',
  },
}
SCSS
$custom: #a242d9;
$custom-light: #c27ee6;
$custom-dark: #000000;
JSON
{
  "hex": "#a242d9",
  "rgb": {
    "r": 162,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 278.146,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.57743,
    "c": 0.22427,
    "h": 310.3
  },
  "luminance": 0.16588
}

Semantic roles & 50–950 ramp

primary
#A242D9
secondary
#B3DB9C
accent
#E93E7D
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A242D9

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

Preview Lab → · Contrast checker → · Palette generator →

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