#A242B2#A242B2

#A242B2 is a mid, vivid purple. Relative luminance 0.148; OKLCH L 55.3% C 0.187 H 321.7°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#A242B2
RGBrgb(162, 66, 178)
HSLhsl(291, 46%, 48%)
HSVhsv(291, 63%, 70%)
CMYKcmyk(9%, 62.9%, 0%, 30.2%)
CIE-LABlab(45.35, 55.42, -41.70)
CIE-LCHlch(45.35, 69.36, 323.04°)
OKLaboklab(55.26% 0.147 -0.1161)
OKLCHoklch(55.26% 0.187 321.7)
XYZxyz(24.8835, 14.7934, 43.6556)
Luminance0.1479 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A242B2 #52B242
analogous
#6A42B2 #A242B2 #B2428A
triadic
#A242B2 #B2A242 #42B2A2
tetradic
#A242B2 #B26A42 #52B242 #428AB2
square
#A242B2 #B26A42 #52B242 #428AB2
split-complementary
#A242B2 #8AB242 #42B26A
monochromatic
#512159 #793185 #A242B2 #BA6AC8 #CF96D8

Accessibility & contrast

On white

5.31
#A242B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#A242B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A242B2
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A242B2#FFFFFF#000000##FFFFFF
##A242B21.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2864B5
Deuteranopia (green-blind)
#4F6FAF
Tritanopia (blue-blind)
#A45474
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a242b2;
/* rgb */ color: rgb(162, 66, 178);
/* oklch */ color: oklch(55.3% 0.187 321.7);
Tailwind
colors: {
  custom: {
    50: '#c07dc9',
    500: '#a242b2',
    950: '#000000',
  },
}
SCSS
$custom: #a242b2;
$custom-light: #c07dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#a242b2",
  "rgb": {
    "r": 162,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 291.429,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.55263,
    "c": 0.18733,
    "h": 321.7
  },
  "luminance": 0.14792
}

Semantic roles & 50–950 ramp

primary
#A242B2
secondary
#94C48C
accent
#D65265
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A242B2

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

Preview Lab → · Contrast checker → · Palette generator →

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