#7F4CCE#7F4CCE

#7F4CCE is a mid, vivid violet. Relative luminance 0.141; OKLCH L 54.2% C 0.192 H 297.7°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#7F4CCE
RGBrgb(127, 76, 206)
HSLhsl(264, 57%, 55%)
HSVhsv(264, 63%, 81%)
CMYKcmyk(38.3%, 63.1%, 0%, 19.2%)
CIE-LABlab(44.43, 48.72, -59.71)
CIE-LCHlch(44.43, 77.07, 309.21°)
OKLaboklab(54.2% 0.0892 -0.17)
OKLCHoklch(54.2% 0.192 297.7)
XYZxyz(22.4746, 14.1368, 59.9251)
Luminance0.1414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4CCE #9BCE4C
analogous
#4C5ACE #7F4CCE #C04CCE
triadic
#7F4CCE #CE7F4C #4CCE7F
tetradic
#7F4CCE #CE4C5A #9BCE4C #4CCEC0
square
#7F4CCE #CE4C5A #9BCE4C #4CCEC0
split-complementary
#7F4CCE #CEC04C #5ACE4C
monochromatic
#46227D #612FAD #7F4CCE #A17CDB #C4ACE8

Accessibility & contrast

On white

5.49
#7F4CCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#7F4CCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4CCE
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4CCE#FFFFFF#000000##FFFFFF
##7F4CCE1.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D2
Deuteranopia (green-blind)
#0068CB
Tritanopia (blue-blind)
#6C6986
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7f4cce;
/* rgb */ color: rgb(127, 76, 206);
/* oklch */ color: oklch(54.2% 0.192 297.7);
Tailwind
colors: {
  custom: {
    50: '#a981de',
    500: '#7f4cce',
    950: '#000000',
  },
}
SCSS
$custom: #7f4cce;
$custom-light: #a981de;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4cce",
  "rgb": {
    "r": 127,
    "g": 76,
    "b": 206
  },
  "hsl": {
    "h": 263.538,
    "s": 57.018,
    "l": 55.294
  },
  "oklch": {
    "l": 0.54195,
    "c": 0.19201,
    "h": 297.7
  },
  "luminance": 0.14137
}

Semantic roles & 50–950 ramp

primary
#7F4CCE
secondary
#C1D6A0
accent
#E048A4
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7F4CCE

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

Preview Lab → · Contrast checker → · Palette generator →

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