#7F5CE2#7F5CE2

#7F5CE2 is a mid, vivid violet. Relative luminance 0.177; OKLCH L 58.0% C 0.195 H 291.1°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#7F5CE2
RGBrgb(127, 92, 226)
HSLhsl(256, 70%, 62%)
HSVhsv(256, 59%, 89%)
CMYKcmyk(43.8%, 59.3%, 0%, 11.4%)
CIE-LABlab(49.08, 45.33, -63.61)
CIE-LCHlch(49.08, 78.11, 305.48°)
OKLaboklab(58.01% 0.0702 -0.1815)
OKLCHoklch(58.01% 0.195 291.1)
XYZxyz(26.3032, 17.6564, 73.9589)
Luminance0.1766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5CE2 #BFE25C
analogous
#5C7CE2 #7F5CE2 #C25CE2
triadic
#7F5CE2 #E27F5C #5CE27F
tetradic
#7F5CE2 #E25C7C #BFE25C #5CE2C2
square
#7F5CE2 #E25C7C #BFE25C #5CE2C2
split-complementary
#7F5CE2 #E2C25C #7CE25C
monochromatic
#411EA6 #5628D9 #7F5CE2 #A890EB #D1C4F4

Accessibility & contrast

On white

4.63
#7F5CE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#7F5CE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5CE2
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5CE2#FFFFFF#000000##FFFFFF
##7F5CE21.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E6
Deuteranopia (green-blind)
#0072DF
Tritanopia (blue-blind)
#627A96
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7f5ce2;
/* rgb */ color: rgb(127, 92, 226);
/* oklch */ color: oklch(58.0% 0.195 291.1);
Tailwind
colors: {
  custom: {
    50: '#aa8bec',
    500: '#7f5ce2',
    950: '#000000',
  },
}
SCSS
$custom: #7f5ce2;
$custom-light: #aa8bec;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5ce2",
  "rgb": {
    "r": 127,
    "g": 92,
    "b": 226
  },
  "hsl": {
    "h": 255.672,
    "s": 69.792,
    "l": 62.353
  },
  "oklch": {
    "l": 0.58014,
    "c": 0.19459,
    "h": 291.1
  },
  "luminance": 0.17657
}

Semantic roles & 50–950 ramp

primary
#7F5CE2
secondary
#D9E5B4
accent
#D214A0
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7F5CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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