#7F4DCE#7F4DCE

#7F4DCE is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.3% C 0.191 H 297.5°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#7F4DCE
RGBrgb(127, 77, 206)
HSLhsl(263, 57%, 55%)
HSVhsv(263, 63%, 81%)
CMYKcmyk(38.3%, 62.6%, 0%, 19.2%)
CIE-LABlab(44.63, 48.19, -59.39)
CIE-LCHlch(44.63, 76.48, 309.05°)
OKLaboklab(54.34% 0.0881 -0.1691)
OKLCHoklch(54.34% 0.191 297.5)
XYZxyz(22.5440, 14.2757, 59.9483)
Luminance0.1428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4DCE #9CCE4D
analogous
#4D5BCE #7F4DCE #BF4DCE
triadic
#7F4DCE #CE7F4D #4DCE7F
tetradic
#7F4DCE #CE4D5B #9CCE4D #4DCEBF
square
#7F4DCE #CE4D5B #9CCE4D #4DCEBF
split-complementary
#7F4DCE #CEBF4D #5BCE4D
monochromatic
#46237E #6130AE #7F4DCE #A27DDB #C4ADE8

Accessibility & contrast

On white

5.45
#7F4DCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#7F4DCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4DCE
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4DCE#FFFFFF#000000##FFFFFF
##7F4DCE1.005.453.865.45
#FFFFFF5.451.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD2
Deuteranopia (green-blind)
#0468CB
Tritanopia (blue-blind)
#6C6A86
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7f4dce;
/* rgb */ color: rgb(127, 77, 206);
/* oklch */ color: oklch(54.3% 0.191 297.5);
Tailwind
colors: {
  custom: {
    50: '#a981de',
    500: '#7f4dce',
    950: '#000000',
  },
}
SCSS
$custom: #7f4dce;
$custom-light: #a981de;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4dce",
  "rgb": {
    "r": 127,
    "g": 77,
    "b": 206
  },
  "hsl": {
    "h": 263.256,
    "s": 56.828,
    "l": 55.49
  },
  "oklch": {
    "l": 0.54338,
    "c": 0.19066,
    "h": 297.5
  },
  "luminance": 0.14276
}

Semantic roles & 50–950 ramp

primary
#7F4DCE
secondary
#C1D6A1
accent
#E048A5
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7F4DCE

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

Preview Lab → · Contrast checker → · Palette generator →

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