#A242D6#A242D6

#A242D6 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.5% C 0.221 H 311.1°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#A242D6
RGBrgb(162, 66, 214)
HSLhsl(279, 64%, 55%)
HSVhsv(279, 69%, 84%)
CMYKcmyk(24.3%, 69.2%, 0%, 16.1%)
CIE-LABlab(47.54, 62.67, -59.07)
CIE-LCHlch(47.54, 86.12, 316.70°)
OKLaboklab(57.54% 0.1454 -0.1669)
OKLCHoklch(57.54% 0.221 311.1)
XYZxyz(28.9838, 16.4335, 65.2505)
Luminance0.1643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A242D6 #76D642
analogous
#5842D6 #A242D6 #D642C0
triadic
#A242D6 #D6A242 #42D6A2
tetradic
#A242D6 #D65842 #76D642 #42C0D6
square
#A242D6 #D65842 #76D642 #42C0D6
split-complementary
#A242D6 #C0D642 #42D658
monochromatic
#5E1C82 #8227B4 #A242D6 #BB74E1 #D3A7EC

Accessibility & contrast

On white

4.90
#A242D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#A242D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A242D6
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A242D6#FFFFFF#000000##FFFFFF
##A242D61.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDA
Deuteranopia (green-blind)
#2D72D3
Tritanopia (blue-blind)
#9B6287
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a242d6;
/* rgb */ color: rgb(162, 66, 214);
/* oklch */ color: oklch(57.5% 0.221 311.1);
Tailwind
colors: {
  custom: {
    50: '#c27ee3',
    500: '#a242d6',
    950: '#000000',
  },
}
SCSS
$custom: #a242d6;
$custom-light: #c27ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#a242d6",
  "rgb": {
    "r": 162,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 278.919,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.57538,
    "c": 0.22139,
    "h": 311.1
  },
  "luminance": 0.16433
}

Semantic roles & 50–950 ramp

primary
#A242D6
secondary
#B1D99B
accent
#E7407B
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A242D6

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

Preview Lab → · Contrast checker → · Palette generator →

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