#7F5CCD#7F5CCD

#7F5CCD is a mid, vivid violet. Relative luminance 0.166; OKLCH L 56.6% C 0.168 H 294.7°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7F5CCD
RGBrgb(127, 92, 205)
HSLhsl(259, 53%, 58%)
HSVhsv(259, 55%, 80%)
CMYKcmyk(38%, 55.1%, 0%, 19.6%)
CIE-LABlab(47.72, 39.60, -53.84)
CIE-LCHlch(47.72, 66.83, 306.34°)
OKLaboklab(56.58% 0.0703 -0.1528)
OKLCHoklch(56.58% 0.168 294.7)
XYZxyz(23.5961, 16.5736, 59.7016)
Luminance0.1657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5CCD #AACD5C
analogous
#5C71CD #7F5CCD #B75CCD
triadic
#7F5CCD #CD7F5C #5CCD7F
tetradic
#7F5CCD #CD5C71 #AACD5C #5CCDB7
square
#7F5CCD #CD5C71 #AACD5C #5CCDB7
split-complementary
#7F5CCD #CDB75C #71CD5C
monochromatic
#462986 #5E37B4 #7F5CCD #A48BDB #C9BAEA

Accessibility & contrast

On white

4.87
#7F5CCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7F5CCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5CCD
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5CCD#FFFFFF#000000##FFFFFF
##7F5CCD1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2772D1
Deuteranopia (green-blind)
#316FCA
Tritanopia (blue-blind)
#6C748C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f5ccd;
/* rgb */ color: rgb(127, 92, 205);
/* oklch */ color: oklch(56.6% 0.168 294.7);
Tailwind
colors: {
  custom: {
    50: '#a88bdd',
    500: '#7f5ccd',
    950: '#000000',
  },
}
SCSS
$custom: #7f5ccd;
$custom-light: #a88bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5ccd",
  "rgb": {
    "r": 127,
    "g": 92,
    "b": 205
  },
  "hsl": {
    "h": 258.584,
    "s": 53.052,
    "l": 58.235
  },
  "oklch": {
    "l": 0.56581,
    "c": 0.16818,
    "h": 294.7
  },
  "luminance": 0.16574
}

Semantic roles & 50–950 ramp

primary
#7F5CCD
secondary
#CBD9AC
accent
#DC4BB0
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7F5CCD

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

Preview Lab → · Contrast checker → · Palette generator →

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