#7F5DCF#7F5DCF

#7F5DCF is a mid, vivid violet. Relative luminance 0.168; OKLCH L 56.9% C 0.169 H 294.1°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#7F5DCF
RGBrgb(127, 93, 207)
HSLhsl(258, 54%, 59%)
HSVhsv(258, 55%, 81%)
CMYKcmyk(38.6%, 55.1%, 0%, 18.8%)
CIE-LABlab(48.06, 39.57, -54.43)
CIE-LCHlch(48.06, 67.29, 306.02°)
OKLaboklab(56.88% 0.0692 -0.1545)
OKLCHoklch(56.88% 0.169 294.1)
XYZxyz(23.9263, 16.8452, 61.0102)
Luminance0.1685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5DCF #ADCF5D
analogous
#5D74CF #7F5DCF #B85DCF
triadic
#7F5DCF #CF7F5D #5DCF7F
tetradic
#7F5DCF #CF5D74 #ADCF5D #5DCFB8
square
#7F5DCF #CF5D74 #ADCF5D #5DCFB8
split-complementary
#7F5DCF #CFB85D #74CF5D
monochromatic
#452989 #5D37B8 #7F5DCF #A48CDD #CABBEB

Accessibility & contrast

On white

4.81
#7F5DCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#7F5DCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5DCF
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5DCF#FFFFFF#000000##FFFFFF
##7F5DCF1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2673D3
Deuteranopia (green-blind)
#3070CC
Tritanopia (blue-blind)
#6B758D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7f5dcf;
/* rgb */ color: rgb(127, 93, 207);
/* oklch */ color: oklch(56.9% 0.169 294.1);
Tailwind
colors: {
  custom: {
    50: '#a98cde',
    500: '#7f5dcf',
    950: '#000000',
  },
}
SCSS
$custom: #7f5dcf;
$custom-light: #a98cde;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5dcf",
  "rgb": {
    "r": 127,
    "g": 93,
    "b": 207
  },
  "hsl": {
    "h": 257.895,
    "s": 54.286,
    "l": 58.824
  },
  "oklch": {
    "l": 0.56877,
    "c": 0.16928,
    "h": 294.1
  },
  "luminance": 0.16846
}

Semantic roles & 50–950 ramp

primary
#7F5DCF
secondary
#CDDAAD
accent
#DE4AB2
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7F5DCF

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

Preview Lab → · Contrast checker → · Palette generator →

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