#A740DF#A740DF

#A740DF is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 58.6% C 0.234 H 310.8°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#A740DF
RGBrgb(167, 64, 223)
HSLhsl(279, 71%, 56%)
HSVhsv(279, 71%, 87%)
CMYKcmyk(25.1%, 71.3%, 0%, 12.5%)
CIE-LABlab(48.52, 66.37, -62.57)
CIE-LCHlch(48.52, 91.22, 316.69°)
OKLaboklab(58.57% 0.1526 -0.1771)
OKLCHoklch(58.57% 0.234 310.8)
XYZxyz(31.0865, 17.2107, 71.4821)
Luminance0.1721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A740DF #78DF40
analogous
#5840DF #A740DF #DF40C8
triadic
#A740DF #DFA740 #40DFA7
tetradic
#A740DF #DF5840 #78DF40 #40C8DF
square
#A740DF #DF5840 #78DF40 #40C8DF
split-complementary
#A740DF #C8DF40 #40DF58
monochromatic
#64188D #8920C1 #A740DF #BF74E8 #D7A9F1

Accessibility & contrast

On white

4.73
#A740DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#A740DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A740DF
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A740DF#FFFFFF#000000##FFFFFF
##A740DF1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE4
Deuteranopia (green-blind)
#2475DC
Tritanopia (blue-blind)
#A0648C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a740df;
/* rgb */ color: rgb(167, 64, 223);
/* oklch */ color: oklch(58.6% 0.234 310.8);
Tailwind
colors: {
  custom: {
    50: '#c67eea',
    500: '#a740df',
    950: '#000000',
  },
}
SCSS
$custom: #a740df;
$custom-light: #c67eea;
$custom-dark: #000000;
JSON
{
  "hex": "#a740df",
  "rgb": {
    "r": 167,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 278.868,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.58572,
    "c": 0.23377,
    "h": 310.8
  },
  "luminance": 0.1721
}

Semantic roles & 50–950 ramp

primary
#A740DF
secondary
#B4DE9D
accent
#EE3A79
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140A16
muted
#827C84

Preview Lab

Preview with #A740DF

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

Preview Lab → · Contrast checker → · Palette generator →

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