#A242DF#A242DF

#A242DF is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 58.2% C 0.230 H 308.8°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#A242DF
RGBrgb(162, 66, 223)
HSLhsl(277, 71%, 57%)
HSVhsv(277, 70%, 87%)
CMYKcmyk(27.4%, 70.4%, 0%, 12.5%)
CIE-LABlab(48.14, 64.58, -63.23)
CIE-LCHlch(48.14, 90.38, 315.61°)
OKLaboklab(58.16% 0.1443 -0.1792)
OKLCHoklch(58.16% 0.23 308.8)
XYZxyz(30.1651, 16.9061, 71.4718)
Luminance0.1691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A242DF #7FDF42
analogous
#5442DF #A242DF #DF42CE
triadic
#A242DF #DFA242 #42DFA2
tetradic
#A242DF #DF5442 #7FDF42 #42CEDF
square
#A242DF #DF5442 #7FDF42 #42CEDF
split-complementary
#A242DF #CEDF42 #42DF54
monochromatic
#60188E #8421C3 #A242DF #BC76E8 #D6ABF1

Accessibility & contrast

On white

4.79
#A242DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#A242DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A242DF
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A242DF#FFFFFF#000000##FFFFFF
##A242DF1.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE4
Deuteranopia (green-blind)
#1C73DC
Tritanopia (blue-blind)
#99658C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a242df;
/* rgb */ color: rgb(162, 66, 223);
/* oklch */ color: oklch(58.2% 0.230 308.8);
Tailwind
colors: {
  custom: {
    50: '#c27eea',
    500: '#a242df',
    950: '#000000',
  },
}
SCSS
$custom: #a242df;
$custom-light: #c27eea;
$custom-dark: #000000;
JSON
{
  "hex": "#a242df",
  "rgb": {
    "r": 162,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 276.688,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.58159,
    "c": 0.23004,
    "h": 308.8
  },
  "luminance": 0.16906
}

Semantic roles & 50–950 ramp

primary
#A242DF
secondary
#B7DF9E
accent
#EE3A80
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A242DF

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

Preview Lab → · Contrast checker → · Palette generator →

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