#A242D7#A242D7

#A242D7 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.6% C 0.222 H 310.8°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#A242D7
RGBrgb(162, 66, 215)
HSLhsl(279, 65%, 55%)
HSVhsv(279, 69%, 84%)
CMYKcmyk(24.7%, 69.3%, 0%, 15.7%)
CIE-LABlab(47.60, 62.88, -59.53)
CIE-LCHlch(47.60, 86.60, 316.57°)
OKLaboklab(57.61% 0.1453 -0.1683)
OKLCHoklch(57.61% 0.222 310.8)
XYZxyz(29.1119, 16.4848, 65.9251)
Luminance0.1648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A242D7 #77D742
analogous
#5842D7 #A242D7 #D742C1
triadic
#A242D7 #D7A242 #42D7A2
tetradic
#A242D7 #D75842 #77D742 #42C1D7
square
#A242D7 #D75842 #77D742 #42C1D7
split-complementary
#A242D7 #C1D742 #42D758
monochromatic
#5E1C83 #8326B5 #A242D7 #BB75E2 #D4A7EC

Accessibility & contrast

On white

4.89
#A242D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#A242D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A242D7
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A242D7#FFFFFF#000000##FFFFFF
##A242D71.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDB
Deuteranopia (green-blind)
#2C73D4
Tritanopia (blue-blind)
#9B6288
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a242d7;
/* rgb */ color: rgb(162, 66, 215);
/* oklch */ color: oklch(57.6% 0.222 310.8);
Tailwind
colors: {
  custom: {
    50: '#c27ee4',
    500: '#a242d7',
    950: '#000000',
  },
}
SCSS
$custom: #a242d7;
$custom-light: #c27ee4;
$custom-dark: #000000;
JSON
{
  "hex": "#a242d7",
  "rgb": {
    "r": 162,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 278.658,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.57606,
    "c": 0.22235,
    "h": 310.8
  },
  "luminance": 0.16484
}

Semantic roles & 50–950 ramp

primary
#A242D7
secondary
#B1DA9B
accent
#E8407C
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A242D7

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

Preview Lab → · Contrast checker → · Palette generator →

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