#7F4CD2#7F4CD2

#7F4CD2 is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.5% C 0.197 H 296.9°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#7F4CD2
RGBrgb(127, 76, 210)
HSLhsl(263, 60%, 56%)
HSVhsv(263, 64%, 82%)
CMYKcmyk(39.5%, 63.8%, 0%, 17.6%)
CIE-LABlab(44.71, 49.76, -61.56)
CIE-LCHlch(44.71, 79.16, 308.95°)
OKLaboklab(54.49% 0.0889 -0.1755)
OKLCHoklch(54.49% 0.197 296.9)
XYZxyz(22.9667, 14.3336, 62.5169)
Luminance0.1433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4CD2 #9FD24C
analogous
#4C5CD2 #7F4CD2 #C24CD2
triadic
#7F4CD2 #D27F4C #4CD27F
tetradic
#7F4CD2 #D24C5C #9FD24C #4CD2C2
square
#7F4CD2 #D24C5C #9FD24C #4CD2C2
split-complementary
#7F4CD2 #D2C24C #5CD24C
monochromatic
#462183 #602DB4 #7F4CD2 #A27DDE #C5AEEB

Accessibility & contrast

On white

5.43
#7F4CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#7F4CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4CD2
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4CD2#FFFFFF#000000##FFFFFF
##7F4CD21.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD6
Deuteranopia (green-blind)
#0068CF
Tritanopia (blue-blind)
#6B6B88
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7f4cd2;
/* rgb */ color: rgb(127, 76, 210);
/* oklch */ color: oklch(54.5% 0.197 296.9);
Tailwind
colors: {
  custom: {
    50: '#aa81e1',
    500: '#7f4cd2',
    950: '#000000',
  },
}
SCSS
$custom: #7f4cd2;
$custom-light: #aa81e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4cd2",
  "rgb": {
    "r": 127,
    "g": 76,
    "b": 210
  },
  "hsl": {
    "h": 262.836,
    "s": 59.821,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54486,
    "c": 0.19669,
    "h": 296.9
  },
  "luminance": 0.14334
}

Semantic roles & 50–950 ramp

primary
#7F4CD2
secondary
#C4D9A1
accent
#E345A7
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7F4CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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