#A742BA#A742BA

#A742BA is a mid, vivid purple. Relative luminance 0.157; OKLCH L 56.4% C 0.197 H 321.0°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#A742BA
RGBrgb(167, 66, 186)
HSLhsl(291, 48%, 49%)
HSVhsv(291, 65%, 73%)
CMYKcmyk(10.2%, 64.5%, 0%, 27.1%)
CIE-LABlab(46.52, 58.16, -44.48)
CIE-LCHlch(46.52, 73.21, 322.59°)
OKLaboklab(56.41% 0.1531 -0.1241)
OKLCHoklch(56.41% 0.197 321)
XYZxyz(26.7465, 15.6584, 48.0584)
Luminance0.1566 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A742BA #55BA42
analogous
#6B42BA #A742BA #BA4291
triadic
#A742BA #BAA742 #42BAA7
tetradic
#A742BA #BA6B42 #55BA42 #4291BA
square
#A742BA #BA6B42 #55BA42 #4291BA
split-complementary
#A742BA #91BA42 #42BA6B
monochromatic
#562260 #7E328D #A742BA #BD6ECB #D19BDB

Accessibility & contrast

On white

5.08
#A742BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#A742BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A742BA
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A742BA#FFFFFF#000000##FFFFFF
##A742BA1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2167BE
Deuteranopia (green-blind)
#4E72B7
Tritanopia (blue-blind)
#A85678
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a742ba;
/* rgb */ color: rgb(167, 66, 186);
/* oklch */ color: oklch(56.4% 0.197 321.0);
Tailwind
colors: {
  custom: {
    50: '#c47dcf',
    500: '#a742ba',
    950: '#000000',
  },
}
SCSS
$custom: #a742ba;
$custom-light: #c47dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#a742ba",
  "rgb": {
    "r": 167,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 290.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.56405,
    "c": 0.19703,
    "h": 321
  },
  "luminance": 0.15657
}

Semantic roles & 50–950 ramp

primary
#A742BA
secondary
#99C890
accent
#D75166
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A742BA

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

Preview Lab → · Contrast checker → · Palette generator →

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