#A742E2#A742E2

#A742E2 is a mid, highly saturated violet. Relative luminance 0.176; OKLCH L 59.0% C 0.234 H 309.9°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#A742E2
RGBrgb(167, 66, 226)
HSLhsl(278, 73%, 57%)
HSVhsv(278, 71%, 89%)
CMYKcmyk(26.1%, 70.8%, 0%, 11.4%)
CIE-LABlab(49.01, 66.19, -63.49)
CIE-LCHlch(49.01, 91.72, 316.19°)
OKLaboklab(58.98% 0.1503 -0.1798)
OKLCHoklch(58.98% 0.234 309.9)
XYZxyz(31.6093, 17.6036, 73.6694)
Luminance0.1760 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A742E2 #7DE242
analogous
#5742E2 #A742E2 #E242CD
triadic
#A742E2 #E2A742 #42E2A7
tetradic
#A742E2 #E25742 #7DE242 #42CDE2
square
#A742E2 #E25742 #7DE242 #42CDE2
split-complementary
#A742E2 #CDE242 #42E257
monochromatic
#651793 #8A1FC8 #A742E2 #C077EA #D8ACF2

Accessibility & contrast

On white

4.65
#A742E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#A742E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #A742E2
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A742E2#FFFFFF#000000##FFFFFF
##A742E21.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E7
Deuteranopia (green-blind)
#2176DF
Tritanopia (blue-blind)
#9F668E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #a742e2;
/* rgb */ color: rgb(167, 66, 226);
/* oklch */ color: oklch(59.0% 0.234 309.9);
Tailwind
colors: {
  custom: {
    50: '#c67fec',
    500: '#a742e2',
    950: '#000000',
  },
}
SCSS
$custom: #a742e2;
$custom-light: #c67fec;
$custom-dark: #000000;
JSON
{
  "hex": "#a742e2",
  "rgb": {
    "r": 167,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 277.875,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.58982,
    "c": 0.23432,
    "h": 309.9
  },
  "luminance": 0.17603
}

Semantic roles & 50–950 ramp

primary
#A742E2
secondary
#B7E09F
accent
#F0387C
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #A742E2

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

Preview Lab → · Contrast checker → · Palette generator →

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