#A740B2#A740B2

#A740B2 is a mid, vivid purple. Relative luminance 0.151; OKLCH L 55.7% C 0.193 H 323.7°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#A740B2
RGBrgb(167, 64, 178)
HSLhsl(294, 47%, 47%)
HSVhsv(294, 64%, 70%)
CMYKcmyk(6.2%, 64%, 0%, 30.2%)
CIE-LABlab(45.77, 57.52, -40.99)
CIE-LCHlch(45.77, 70.63, 324.52°)
OKLaboklab(55.72% 0.1553 -0.1139)
OKLCHoklch(55.72% 0.193 323.7)
XYZxyz(25.8049, 15.0981, 43.6659)
Luminance0.1510 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A740B2 #4BB240
analogous
#6E40B2 #A740B2 #B24084
triadic
#A740B2 #B2A740 #40B2A7
tetradic
#A740B2 #B26E40 #4BB240 #4084B2
square
#A740B2 #B26E40 #4BB240 #4084B2
split-complementary
#A740B2 #84B240 #40B26E
monochromatic
#532058 #7D3085 #A740B2 #BF67C8 #D294D8

Accessibility & contrast

On white

5.22
#A740B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#A740B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A740B2
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A740B2#FFFFFF#000000##FFFFFF
##A740B21.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2864B5
Deuteranopia (green-blind)
#5271AF
Tritanopia (blue-blind)
#AA5173
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a740b2;
/* rgb */ color: rgb(167, 64, 178);
/* oklch */ color: oklch(55.7% 0.193 323.7);
Tailwind
colors: {
  custom: {
    50: '#c47cc9',
    500: '#a740b2',
    950: '#000000',
  },
}
SCSS
$custom: #a740b2;
$custom-light: #c47cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#a740b2",
  "rgb": {
    "r": 167,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 294.211,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.55715,
    "c": 0.19256,
    "h": 323.7
  },
  "luminance": 0.15097
}

Semantic roles & 50–950 ramp

primary
#A740B2
secondary
#8FC48A
accent
#D7515E
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A740B2

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

Preview Lab → · Contrast checker → · Palette generator →

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