#7F5DC0#7F5DC0

#7F5DC0 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 55.9% C 0.150 H 297.2°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7F5DC0
RGBrgb(127, 93, 192)
HSLhsl(261, 44%, 56%)
HSVhsv(261, 52%, 75%)
CMYKcmyk(33.9%, 51.6%, 0%, 24.7%)
CIE-LABlab(47.17, 35.56, -47.23)
CIE-LCHlch(47.17, 59.12, 306.97°)
OKLaboklab(55.92% 0.0684 -0.1334)
OKLCHoklch(55.92% 0.15 297.2)
XYZxyz(22.1788, 16.1462, 51.8070)
Luminance0.1615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5DC0 #9EC05D
analogous
#5D6CC0 #7F5DC0 #B05DC0
triadic
#7F5DC0 #C07F5D #5DC07F
tetradic
#7F5DC0 #C05D6C #9EC05D #5DC0B0
square
#7F5DC0 #C05D6C #9EC05D #5DC0B0
split-complementary
#7F5DC0 #C0B05D #6CC05D
monochromatic
#462E75 #603FA1 #7F5DC0 #A289D1 #C5B5E2

Accessibility & contrast

On white

4.97
#7F5DC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7F5DC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5DC0
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5DC0#FFFFFF#000000##FFFFFF
##7F5DC01.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3870C3
Deuteranopia (green-blind)
#406FBE
Tritanopia (blue-blind)
#717086
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f5dc0;
/* rgb */ color: rgb(127, 93, 192);
/* oklch */ color: oklch(55.9% 0.150 297.2);
Tailwind
colors: {
  custom: {
    50: '#a78cd3',
    500: '#7f5dc0',
    950: '#000000',
  },
}
SCSS
$custom: #7f5dc0;
$custom-light: #a78cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5dc0",
  "rgb": {
    "r": 127,
    "g": 93,
    "b": 192
  },
  "hsl": {
    "h": 260.606,
    "s": 44,
    "l": 55.882
  },
  "oklch": {
    "l": 0.55921,
    "c": 0.14991,
    "h": 297.2
  },
  "luminance": 0.16146
}

Semantic roles & 50–950 ramp

primary
#7F5DC0
secondary
#C3D1A8
accent
#D454A8
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #7F5DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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