#7F4AC2#7F4AC2

#7F4AC2 is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.1% C 0.181 H 300.7°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#7F4AC2
RGBrgb(127, 74, 194)
HSLhsl(267, 50%, 53%)
HSVhsv(267, 62%, 76%)
CMYKcmyk(34.5%, 61.9%, 0%, 23.9%)
CIE-LABlab(43.22, 46.71, -54.72)
CIE-LCHlch(43.22, 71.95, 310.49°)
OKLaboklab(53.06% 0.0923 -0.1554)
OKLCHoklch(53.06% 0.181 300.7)
XYZxyz(20.9364, 13.3045, 52.4935)
Luminance0.1331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4AC2 #8DC24A
analogous
#4A51C2 #7F4AC2 #BB4AC2
triadic
#7F4AC2 #C27F4A #4AC27F
tetradic
#7F4AC2 #C24A51 #8DC24A #4AC2BB
square
#7F4AC2 #C24A51 #8DC24A #4AC2BB
split-complementary
#7F4AC2 #C2BB4A #51C24A
monochromatic
#45256D #61349B #7F4AC2 #9F78D1 #C0A6E1

Accessibility & contrast

On white

5.74
#7F4AC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#7F4AC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4AC2
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4AC2#FFFFFF#000000##FFFFFF
##7F4AC21.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#1F65BF
Tritanopia (blue-blind)
#71647F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7f4ac2;
/* rgb */ color: rgb(127, 74, 194);
/* oklch */ color: oklch(53.1% 0.181 300.7);
Tailwind
colors: {
  custom: {
    50: '#a87fd5',
    500: '#7f4ac2',
    950: '#000000',
  },
}
SCSS
$custom: #7f4ac2;
$custom-light: #a87fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4ac2",
  "rgb": {
    "r": 127,
    "g": 74,
    "b": 194
  },
  "hsl": {
    "h": 266.5,
    "s": 49.587,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53059,
    "c": 0.1807,
    "h": 300.7
  },
  "luminance": 0.13305
}

Semantic roles & 50–950 ramp

primary
#7F4AC2
secondary
#B7CE9A
accent
#D94F9C
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7F4AC2

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

Preview Lab → · Contrast checker → · Palette generator →

#7F4AC2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva