#7F4DCD#7F4DCD

#7F4DCD is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.3% C 0.189 H 297.7°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#7F4DCD
RGBrgb(127, 77, 205)
HSLhsl(263, 56%, 55%)
HSVhsv(263, 62%, 80%)
CMYKcmyk(38%, 62.4%, 0%, 19.6%)
CIE-LABlab(44.56, 47.93, -58.93)
CIE-LCHlch(44.56, 75.96, 309.12°)
OKLaboklab(54.27% 0.0881 -0.1677)
OKLCHoklch(54.27% 0.189 297.7)
XYZxyz(22.4229, 14.2272, 59.3105)
Luminance0.1423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4DCD #9BCD4D
analogous
#4D5BCD #7F4DCD #BF4DCD
triadic
#7F4DCD #CD7F4D #4DCD7F
tetradic
#7F4DCD #CD4D5B #9BCD4D #4DCDBF
square
#7F4DCD #CD4D5B #9BCD4D #4DCDBF
split-complementary
#7F4DCD #CDBF4D #5BCD4D
monochromatic
#46237D #6130AC #7F4DCD #A17DDA #C4ADE8

Accessibility & contrast

On white

5.46
#7F4DCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#7F4DCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4DCD
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4DCD#FFFFFF#000000##FFFFFF
##7F4DCD1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD1
Deuteranopia (green-blind)
#0968CA
Tritanopia (blue-blind)
#6D6986
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7f4dcd;
/* rgb */ color: rgb(127, 77, 205);
/* oklch */ color: oklch(54.3% 0.189 297.7);
Tailwind
colors: {
  custom: {
    50: '#a981dd',
    500: '#7f4dcd',
    950: '#000000',
  },
}
SCSS
$custom: #7f4dcd;
$custom-light: #a981dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4dcd",
  "rgb": {
    "r": 127,
    "g": 77,
    "b": 205
  },
  "hsl": {
    "h": 263.438,
    "s": 56.14,
    "l": 55.294
  },
  "oklch": {
    "l": 0.54267,
    "c": 0.18948,
    "h": 297.7
  },
  "luminance": 0.14228
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F4DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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