#A742BC#A742BC

#A742BC is a mid, vivid purple. Relative luminance 0.157; OKLCH L 56.5% C 0.199 H 320.3°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#A742BC
RGBrgb(167, 66, 188)
HSLhsl(290, 48%, 50%)
HSVhsv(290, 65%, 74%)
CMYKcmyk(11.2%, 64.9%, 0%, 26.3%)
CIE-LABlab(46.64, 58.54, -45.46)
CIE-LCHlch(46.64, 74.12, 322.16°)
OKLaboklab(56.52% 0.1531 -0.1269)
OKLCHoklch(56.52% 0.199 320.3)
XYZxyz(26.9606, 15.7441, 49.1860)
Luminance0.1574 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A742BC #57BC42
analogous
#6A42BC #A742BC #BC4294
triadic
#A742BC #BCA742 #42BCA7
tetradic
#A742BC #BC6A42 #57BC42 #4294BC
square
#A742BC #BC6A42 #57BC42 #4294BC
split-complementary
#A742BC #94BC42 #42BC6A
monochromatic
#572261 #7F328F #A742BC #BC6FCC #D19CDC

Accessibility & contrast

On white

5.06
#A742BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#A742BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A742BC
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A742BC#FFFFFF#000000##FFFFFF
##A742BC1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E67C0
Deuteranopia (green-blind)
#4D72B9
Tritanopia (blue-blind)
#A85779
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a742bc;
/* rgb */ color: rgb(167, 66, 188);
/* oklch */ color: oklch(56.5% 0.199 320.3);
Tailwind
colors: {
  custom: {
    50: '#c47ed1',
    500: '#a742bc',
    950: '#000000',
  },
}
SCSS
$custom: #a742bc;
$custom-light: #c47ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#a742bc",
  "rgb": {
    "r": 167,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 289.672,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.56523,
    "c": 0.19886,
    "h": 320.3
  },
  "luminance": 0.15743
}

Semantic roles & 50–950 ramp

primary
#A742BC
secondary
#9BC991
accent
#D85067
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A742BC

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

Preview Lab → · Contrast checker → · Palette generator →

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