#A740E1#A740E1

#A740E1 is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 58.7% C 0.236 H 310.3°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#A740E1
RGBrgb(167, 64, 225)
HSLhsl(278, 73%, 57%)
HSVhsv(278, 72%, 88%)
CMYKcmyk(25.8%, 71.6%, 0%, 11.8%)
CIE-LABlab(48.66, 66.79, -63.49)
CIE-LCHlch(48.66, 92.15, 316.45°)
OKLaboklab(58.71% 0.1524 -0.1798)
OKLCHoklch(58.71% 0.236 310.3)
XYZxyz(31.3577, 17.3192, 72.9106)
Luminance0.1732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A740E1 #7AE140
analogous
#5740E1 #A740E1 #E140CB
triadic
#A740E1 #E1A740 #40E1A7
tetradic
#A740E1 #E15740 #7AE140 #40CBE1
square
#A740E1 #E15740 #7AE140 #40CBE1
split-complementary
#A740E1 #CBE140 #40E157
monochromatic
#641790 #891FC5 #A740E1 #BF75E9 #D8AAF2

Accessibility & contrast

On white

4.70
#A740E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#A740E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A740E1
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A740E1#FFFFFF#000000##FFFFFF
##A740E11.004.704.464.70
#FFFFFF4.701.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE6
Deuteranopia (green-blind)
#2075DE
Tritanopia (blue-blind)
#9F648D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #a740e1;
/* rgb */ color: rgb(167, 64, 225);
/* oklch */ color: oklch(58.7% 0.236 310.3);
Tailwind
colors: {
  custom: {
    50: '#c67eeb',
    500: '#a740e1',
    950: '#000000',
  },
}
SCSS
$custom: #a740e1;
$custom-light: #c67eeb;
$custom-dark: #000000;
JSON
{
  "hex": "#a740e1",
  "rgb": {
    "r": 167,
    "g": 64,
    "b": 225
  },
  "hsl": {
    "h": 278.385,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.58711,
    "c": 0.23564,
    "h": 310.3
  },
  "luminance": 0.17319
}

Semantic roles & 50–950 ramp

primary
#A740E1
secondary
#B5DF9D
accent
#F0387A
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #A740E1

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

Preview Lab → · Contrast checker → · Palette generator →

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