#7F5EC1#7F5EC1

#7F5EC1 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.2% C 0.150 H 296.7°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#7F5EC1
RGBrgb(127, 94, 193)
HSLhsl(260, 44%, 56%)
HSVhsv(260, 51%, 76%)
CMYKcmyk(34.2%, 51.3%, 0%, 24.3%)
CIE-LABlab(47.45, 35.24, -47.35)
CIE-LCHlch(47.45, 59.03, 306.66°)
OKLaboklab(56.15% 0.0672 -0.1337)
OKLCHoklch(56.15% 0.15 296.7)
XYZxyz(22.3783, 16.3674, 52.4219)
Luminance0.1637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5EC1 #A0C15E
analogous
#5E6FC1 #7F5EC1 #B15EC1
triadic
#7F5EC1 #C17F5E #5EC17F
tetradic
#7F5EC1 #C15E6F #A0C15E #5EC1B1
square
#7F5EC1 #C15E6F #A0C15E #5EC1B1
split-complementary
#7F5EC1 #C1B15E #6FC15E
monochromatic
#462E77 #603FA3 #7F5EC1 #A28AD2 #C5B6E3

Accessibility & contrast

On white

4.91
#7F5EC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#7F5EC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5EC1
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5EC1#FFFFFF#000000##FFFFFF
##7F5EC11.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3971C4
Deuteranopia (green-blind)
#416FBF
Tritanopia (blue-blind)
#707187
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f5ec1;
/* rgb */ color: rgb(127, 94, 193);
/* oklch */ color: oklch(56.2% 0.150 296.7);
Tailwind
colors: {
  custom: {
    50: '#a78cd4',
    500: '#7f5ec1',
    950: '#000000',
  },
}
SCSS
$custom: #7f5ec1;
$custom-light: #a78cd4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5ec1",
  "rgb": {
    "r": 127,
    "g": 94,
    "b": 193
  },
  "hsl": {
    "h": 260,
    "s": 44.395,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56153,
    "c": 0.14966,
    "h": 296.7
  },
  "luminance": 0.16368
}

Semantic roles & 50–950 ramp

primary
#7F5EC1
secondary
#C4D2A9
accent
#D454A9
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #7F5EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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