#A242DB#A242DB

#A242DB is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.9% C 0.226 H 309.8°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#A242DB
RGBrgb(162, 66, 219)
HSLhsl(278, 68%, 56%)
HSVhsv(278, 70%, 86%)
CMYKcmyk(26%, 69.9%, 0%, 14.1%)
CIE-LABlab(47.87, 63.73, -61.39)
CIE-LCHlch(47.87, 88.49, 316.07°)
OKLaboklab(57.88% 0.1448 -0.1738)
OKLCHoklch(57.88% 0.226 309.8)
XYZxyz(29.6322, 16.6929, 68.6651)
Luminance0.1669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A242DB #7BDB42
analogous
#5542DB #A242DB #DB42C7
triadic
#A242DB #DBA242 #42DBA2
tetradic
#A242DB #DB5542 #7BDB42 #42C7DB
square
#A242DB #DB5542 #7BDB42 #42C7DB
split-complementary
#A242DB #C7DB42 #42DB55
monochromatic
#5F1A89 #8324BC #A242DB #BB75E5 #D5A9EF

Accessibility & contrast

On white

4.84
#A242DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#A242DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A242DB
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A242DB#FFFFFF#000000##FFFFFF
##A242DB1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDF
Deuteranopia (green-blind)
#2573D8
Tritanopia (blue-blind)
#9A648A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a242db;
/* rgb */ color: rgb(162, 66, 219);
/* oklch */ color: oklch(57.9% 0.226 309.8);
Tailwind
colors: {
  custom: {
    50: '#c27ee7',
    500: '#a242db',
    950: '#000000',
  },
}
SCSS
$custom: #a242db;
$custom-light: #c27ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#a242db",
  "rgb": {
    "r": 162,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 277.647,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.5788,
    "c": 0.2262,
    "h": 309.8
  },
  "luminance": 0.16692
}

Semantic roles & 50–950 ramp

primary
#A242DB
secondary
#B4DC9D
accent
#EB3D7E
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A242DB

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

Preview Lab → · Contrast checker → · Palette generator →

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