#7F4CDA#7F4CDA

#7F4CDA is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.1% C 0.206 H 295.3°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#7F4CDA
RGBrgb(127, 76, 218)
HSLhsl(262, 66%, 58%)
HSVhsv(262, 65%, 85%)
CMYKcmyk(41.7%, 65.1%, 0%, 14.5%)
CIE-LABlab(45.28, 51.84, -65.21)
CIE-LCHlch(45.28, 83.31, 308.48°)
OKLaboklab(55.08% 0.088 -0.1862)
OKLCHoklch(55.08% 0.206 295.3)
XYZxyz(23.9884, 14.7423, 67.8977)
Luminance0.1474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4CDA #A7DA4C
analogous
#4C60DA #7F4CDA #C64CDA
triadic
#7F4CDA #DA7F4C #4CDA7F
tetradic
#7F4CDA #DA4C60 #A7DA4C #4CDAC6
square
#7F4CDA #DA4C60 #A7DA4C #4CDAC6
split-complementary
#7F4CDA #DAC64C #60DA4C
monochromatic
#461D8E #5F28C1 #7F4CDA #A37FE4 #C8B1EF

Accessibility & contrast

On white

5.32
#7F4CDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#7F4CDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4CDA
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4CDA#FFFFFF#000000##FFFFFF
##7F4CDA1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDE
Deuteranopia (green-blind)
#0069D7
Tritanopia (blue-blind)
#676D8C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7f4cda;
/* rgb */ color: rgb(127, 76, 218);
/* oklch */ color: oklch(55.1% 0.206 295.3);
Tailwind
colors: {
  custom: {
    50: '#ab81e6',
    500: '#7f4cda',
    950: '#000000',
  },
}
SCSS
$custom: #7f4cda;
$custom-light: #ab81e6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4cda",
  "rgb": {
    "r": 127,
    "g": 76,
    "b": 218
  },
  "hsl": {
    "h": 261.549,
    "s": 65.741,
    "l": 57.647
  },
  "oklch": {
    "l": 0.55079,
    "c": 0.20597,
    "h": 295.3
  },
  "luminance": 0.14743
}

Semantic roles & 50–950 ramp

primary
#7F4CDA
secondary
#C9DDA4
accent
#E93FAC
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7F4CDA

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

Preview Lab → · Contrast checker → · Palette generator →

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