#7F4DD2#7F4DD2

#7F4DD2 is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.6% C 0.195 H 296.7°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#7F4DD2
RGBrgb(127, 77, 210)
HSLhsl(263, 60%, 56%)
HSVhsv(263, 63%, 82%)
CMYKcmyk(39.5%, 63.3%, 0%, 17.6%)
CIE-LABlab(44.90, 49.23, -61.25)
CIE-LCHlch(44.90, 78.58, 308.79°)
OKLaboklab(54.63% 0.0878 -0.1745)
OKLCHoklch(54.63% 0.195 296.7)
XYZxyz(23.0361, 14.4725, 62.5401)
Luminance0.1447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4DD2 #A0D24D
analogous
#4D5ED2 #7F4DD2 #C14DD2
triadic
#7F4DD2 #D27F4D #4DD27F
tetradic
#7F4DD2 #D24D5E #A0D24D #4DD2C1
square
#7F4DD2 #D24D5E #A0D24D #4DD2C1
split-complementary
#7F4DD2 #D2C14D #5ED24D
monochromatic
#462183 #602EB4 #7F4DD2 #A27EDE #C5AFEB

Accessibility & contrast

On white

5.39
#7F4DD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#7F4DD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4DD2
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4DD2#FFFFFF#000000##FFFFFF
##7F4DD21.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD6
Deuteranopia (green-blind)
#0069CF
Tritanopia (blue-blind)
#6A6B88
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7f4dd2;
/* rgb */ color: rgb(127, 77, 210);
/* oklch */ color: oklch(54.6% 0.195 296.7);
Tailwind
colors: {
  custom: {
    50: '#aa81e1',
    500: '#7f4dd2',
    950: '#000000',
  },
}
SCSS
$custom: #7f4dd2;
$custom-light: #aa81e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4dd2",
  "rgb": {
    "r": 127,
    "g": 77,
    "b": 210
  },
  "hsl": {
    "h": 262.556,
    "s": 59.641,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54627,
    "c": 0.19536,
    "h": 296.7
  },
  "luminance": 0.14473
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F4DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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