#7F4AAA#7F4AAA

#7F4AAA is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.5% C 0.152 H 307.4°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#7F4AAA
RGBrgb(127, 74, 170)
HSLhsl(273, 39%, 48%)
HSVhsv(273, 56%, 67%)
CMYKcmyk(25.3%, 56.5%, 0%, 33.3%)
CIE-LABlab(41.71, 40.79, -43.06)
CIE-LCHlch(41.71, 59.31, 313.45°)
OKLaboklab(51.47% 0.0925 -0.1211)
OKLCHoklch(51.47% 0.152 307.4)
XYZxyz(18.4554, 12.3121, 39.4266)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4AAA #75AA4A
analogous
#4F4AAA #7F4AAA #AA4AA5
triadic
#7F4AAA #AA7F4A #4AAA7F
tetradic
#7F4AAA #AA4F4A #75AA4A #4AA5AA
square
#7F4AAA #AA4F4A #75AA4A #4AA5AA
split-complementary
#7F4AAA #A5AA4A #4AAA4F
monochromatic
#3F2555 #5F377F #7F4AAA #9D70C1 #BA9BD3

Accessibility & contrast

On white

6.07
#7F4AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#7F4AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4AAA
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4AAA#FFFFFF#000000##FFFFFF
##7F4AAA1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2960AD
Deuteranopia (green-blind)
#3C63A8
Tritanopia (blue-blind)
#785C73
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7f4aaa;
/* rgb */ color: rgb(127, 74, 170);
/* oklch */ color: oklch(51.5% 0.152 307.4);
Tailwind
colors: {
  custom: {
    50: '#a77fc4',
    500: '#7f4aaa',
    950: '#000000',
  },
}
SCSS
$custom: #7f4aaa;
$custom-light: #a77fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4aaa",
  "rgb": {
    "r": 127,
    "g": 74,
    "b": 170
  },
  "hsl": {
    "h": 273.125,
    "s": 39.344,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51471,
    "c": 0.1524,
    "h": 307.4
  },
  "luminance": 0.12312
}

Semantic roles & 50–950 ramp

primary
#7F4AAA
secondary
#A5C090
accent
#CF598E
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7F4AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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