#7F5CCE#7F5CCE

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

Color values

HEX#7F5CCE
RGBrgb(127, 92, 206)
HSLhsl(258, 54%, 58%)
HSVhsv(258, 55%, 81%)
CMYKcmyk(38.3%, 55.3%, 0%, 19.2%)
CIE-LABlab(47.78, 39.87, -54.31)
CIE-LCHlch(47.78, 67.37, 306.28°)
OKLaboklab(56.65% 0.0704 -0.1542)
OKLCHoklch(56.65% 0.169 294.5)
XYZxyz(23.7172, 16.6220, 60.3393)
Luminance0.1662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5CCE #ABCE5C
analogous
#5C72CE #7F5CCE #B85CCE
triadic
#7F5CCE #CE7F5C #5CCE7F
tetradic
#7F5CCE #CE5C72 #ABCE5C #5CCEB8
square
#7F5CCE #CE5C72 #ABCE5C #5CCEB8
split-complementary
#7F5CCE #CEB85C #72CE5C
monochromatic
#462987 #5E37B6 #7F5CCE #A48BDC #C9BAEA

Accessibility & contrast

On white

4.86
#7F5CCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#7F5CCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5CCE
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5CCE#FFFFFF#000000##FFFFFF
##7F5CCE1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2572D2
Deuteranopia (green-blind)
#3070CB
Tritanopia (blue-blind)
#6B748C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f5cce;
/* rgb */ color: rgb(127, 92, 206);
/* oklch */ color: oklch(56.6% 0.169 294.5);
Tailwind
colors: {
  custom: {
    50: '#a98bde',
    500: '#7f5cce',
    950: '#000000',
  },
}
SCSS
$custom: #7f5cce;
$custom-light: #a98bde;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5cce",
  "rgb": {
    "r": 127,
    "g": 92,
    "b": 206
  },
  "hsl": {
    "h": 258.421,
    "s": 53.774,
    "l": 58.431
  },
  "oklch": {
    "l": 0.56647,
    "c": 0.16946,
    "h": 294.5
  },
  "luminance": 0.16623
}

Semantic roles & 50–950 ramp

primary
#7F5CCE
secondary
#CCDAAC
accent
#DD4BB0
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7F5CCE

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

Preview Lab → · Contrast checker → · Palette generator →

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