#7F4CD6#7F4CD6

#7F4CD6 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 54.8% C 0.201 H 296.1°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#7F4CD6
RGBrgb(127, 76, 214)
HSLhsl(262, 63%, 57%)
HSVhsv(262, 64%, 84%)
CMYKcmyk(40.7%, 64.5%, 0%, 16.1%)
CIE-LABlab(44.99, 50.80, -63.40)
CIE-LCHlch(44.99, 81.24, 308.70°)
OKLaboklab(54.78% 0.0885 -0.1809)
OKLCHoklch(54.78% 0.201 296.1)
XYZxyz(23.4713, 14.5355, 65.1743)
Luminance0.1454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4CD6 #A3D64C
analogous
#4C5ED6 #7F4CD6 #C44CD6
triadic
#7F4CD6 #D67F4C #4CD67F
tetradic
#7F4CD6 #D64C5E #A3D64C #4CD6C4
square
#7F4CD6 #D64C5E #A3D64C #4CD6C4
split-complementary
#7F4CD6 #D6C44C #5ED64C
monochromatic
#461F88 #602BBA #7F4CD6 #A37EE1 #C6B0ED

Accessibility & contrast

On white

5.37
#7F4CD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#7F4CD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4CD6
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4CD6#FFFFFF#000000##FFFFFF
##7F4CD61.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDA
Deuteranopia (green-blind)
#0069D3
Tritanopia (blue-blind)
#696C8A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7f4cd6;
/* rgb */ color: rgb(127, 76, 214);
/* oklch */ color: oklch(54.8% 0.201 296.1);
Tailwind
colors: {
  custom: {
    50: '#aa81e3',
    500: '#7f4cd6',
    950: '#000000',
  },
}
SCSS
$custom: #7f4cd6;
$custom-light: #aa81e3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4cd6",
  "rgb": {
    "r": 127,
    "g": 76,
    "b": 214
  },
  "hsl": {
    "h": 262.174,
    "s": 62.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.5478,
    "c": 0.20134,
    "h": 296.1
  },
  "luminance": 0.14536
}

Semantic roles & 50–950 ramp

primary
#7F4CD6
secondary
#C6DBA3
accent
#E642A9
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7F4CD6

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

Preview Lab → · Contrast checker → · Palette generator →

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