#A242C7#A242C7

#A242C7 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.5% C 0.207 H 315.1°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#A242C7
RGBrgb(162, 66, 199)
HSLhsl(283, 54%, 52%)
HSVhsv(283, 67%, 78%)
CMYKcmyk(18.6%, 66.8%, 0%, 22%)
CIE-LABlab(46.58, 59.57, -51.98)
CIE-LCHlch(46.58, 79.06, 318.89°)
OKLaboklab(56.55% 0.1467 -0.1461)
OKLCHoklch(56.55% 0.207 315.1)
XYZxyz(27.1556, 15.7023, 55.6221)
Luminance0.1570 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A242C7 #67C742
analogous
#5F42C7 #A242C7 #C742AA
triadic
#A242C7 #C7A242 #42C7A2
tetradic
#A242C7 #C75F42 #67C742 #42AAC7
square
#A242C7 #C75F42 #67C742 #42AAC7
split-complementary
#A242C7 #AAC742 #42C75F
monochromatic
#58216E #7E2F9D #A242C7 #B971D5 #D0A0E3

Accessibility & contrast

On white

5.07
#A242C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#A242C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A242C7
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A242C7#FFFFFF#000000##FFFFFF
##A242C71.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CB
Deuteranopia (green-blind)
#3F71C4
Tritanopia (blue-blind)
#9F5C7F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a242c7;
/* rgb */ color: rgb(162, 66, 199);
/* oklch */ color: oklch(56.5% 0.207 315.1);
Tailwind
colors: {
  custom: {
    50: '#c17dd9',
    500: '#a242c7',
    950: '#000000',
  },
}
SCSS
$custom: #a242c7;
$custom-light: #c17dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#a242c7",
  "rgb": {
    "r": 162,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 283.308,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.56548,
    "c": 0.20705,
    "h": 315.1
  },
  "luminance": 0.15701
}

Semantic roles & 50–950 ramp

primary
#A242C7
secondary
#A5D095
accent
#DE4A73
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A15
muted
#827C83

Preview Lab

Preview with #A242C7

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

Preview Lab → · Contrast checker → · Palette generator →

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