#7F5DCD#7F5DCD

#7F5DCD is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.7% C 0.167 H 294.5°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#7F5DCD
RGBrgb(127, 93, 205)
HSLhsl(258, 53%, 58%)
HSVhsv(258, 55%, 80%)
CMYKcmyk(38%, 54.6%, 0%, 19.6%)
CIE-LABlab(47.94, 39.03, -53.48)
CIE-LCHlch(47.94, 66.20, 306.12°)
OKLaboklab(56.75% 0.0691 -0.1517)
OKLCHoklch(56.75% 0.167 294.5)
XYZxyz(23.6833, 16.7480, 59.7307)
Luminance0.1675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5DCD #ABCD5D
analogous
#5D73CD #7F5DCD #B75DCD
triadic
#7F5DCD #CD7F5D #5DCD7F
tetradic
#7F5DCD #CD5D73 #ABCD5D #5DCDB7
square
#7F5DCD #CD5D73 #ABCD5D #5DCDB7
split-complementary
#7F5DCD #CDB75D #73CD5D
monochromatic
#462986 #5E38B5 #7F5DCD #A48CDB #C9BBEA

Accessibility & contrast

On white

4.83
#7F5DCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#7F5DCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5DCD
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5DCD#FFFFFF#000000##FFFFFF
##7F5DCD1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2973D1
Deuteranopia (green-blind)
#3370CA
Tritanopia (blue-blind)
#6C748C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7f5dcd;
/* rgb */ color: rgb(127, 93, 205);
/* oklch */ color: oklch(56.7% 0.167 294.5);
Tailwind
colors: {
  custom: {
    50: '#a88cdd',
    500: '#7f5dcd',
    950: '#000000',
  },
}
SCSS
$custom: #7f5dcd;
$custom-light: #a88cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5dcd",
  "rgb": {
    "r": 127,
    "g": 93,
    "b": 205
  },
  "hsl": {
    "h": 258.214,
    "s": 52.83,
    "l": 58.431
  },
  "oklch": {
    "l": 0.56746,
    "c": 0.16671,
    "h": 294.5
  },
  "luminance": 0.16749
}

Semantic roles & 50–950 ramp

primary
#7F5DCD
secondary
#CCD9AD
accent
#DC4CB0
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7F5DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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