#A742E8#A742E8

#A742E8 is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 59.4% C 0.240 H 308.5°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#A742E8
RGBrgb(167, 66, 232)
HSLhsl(277, 78%, 58%)
HSVhsv(277, 72%, 91%)
CMYKcmyk(28%, 71.6%, 0%, 9%)
CIE-LABlab(49.42, 67.46, -66.22)
CIE-LCHlch(49.42, 94.53, 315.53°)
OKLaboklab(59.4% 0.1494 -0.1878)
OKLCHoklch(59.4% 0.24 308.5)
XYZxyz(32.4471, 17.9387, 78.0815)
Luminance0.1794 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A742E8 #83E842
analogous
#5442E8 #A742E8 #E842D6
triadic
#A742E8 #E8A742 #42E8A7
tetradic
#A742E8 #E85442 #83E842 #42D6E8
square
#A742E8 #E85442 #83E842 #42D6E8
split-complementary
#A742E8 #D6E842 #42E854
monochromatic
#67139D #8B1AD3 #A742E8 #C079EF #DAAFF5

Accessibility & contrast

On white

4.58
#A742E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#A742E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A742E8
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A742E8#FFFFFF#000000##000000
##A742E81.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072ED
Deuteranopia (green-blind)
#0F77E4
Tritanopia (blue-blind)
#9D6891
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #a742e8;
/* rgb */ color: rgb(167, 66, 232);
/* oklch */ color: oklch(59.4% 0.240 308.5);
Tailwind
colors: {
  custom: {
    50: '#c67ff0',
    500: '#a742e8',
    950: '#000000',
  },
}
SCSS
$custom: #a742e8;
$custom-light: #c67ff0;
$custom-dark: #000000;
JSON
{
  "hex": "#a742e8",
  "rgb": {
    "r": 167,
    "g": 66,
    "b": 232
  },
  "hsl": {
    "h": 276.506,
    "s": 78.302,
    "l": 58.431
  },
  "oklch": {
    "l": 0.59403,
    "c": 0.23999,
    "h": 308.5
  },
  "luminance": 0.17938
}

Semantic roles & 50–950 ramp

primary
#A742E8
secondary
#BCE4A2
accent
#F5337F
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B17
muted
#827C85

Preview Lab

Preview with #A742E8

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

Preview Lab → · Contrast checker → · Palette generator →

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