#7F5CE3#7F5CE3

#7F5CE3 is a mid, vivid violet. Relative luminance 0.177; OKLCH L 58.1% C 0.196 H 291.0°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#7F5CE3
RGBrgb(127, 92, 227)
HSLhsl(256, 71%, 63%)
HSVhsv(256, 59%, 89%)
CMYKcmyk(44.1%, 59.5%, 0%, 11%)
CIE-LABlab(49.14, 45.60, -64.06)
CIE-LCHlch(49.14, 78.64, 305.45°)
OKLaboklab(58.09% 0.0701 -0.1828)
OKLCHoklch(58.09% 0.196 291)
XYZxyz(26.4408, 17.7115, 74.6837)
Luminance0.1771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5CE3 #C0E35C
analogous
#5C7CE3 #7F5CE3 #C35CE3
triadic
#7F5CE3 #E37F5C #5CE37F
tetradic
#7F5CE3 #E35C7C #C0E35C #5CE3C3
square
#7F5CE3 #E35C7C #C0E35C #5CE3C3
split-complementary
#7F5CE3 #E3C35C #7CE35C
monochromatic
#411DA8 #5628DA #7F5CE3 #A890EC #D1C4F5

Accessibility & contrast

On white

4.62
#7F5CE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#7F5CE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5CE3
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5CE3#FFFFFF#000000##FFFFFF
##7F5CE31.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E7
Deuteranopia (green-blind)
#0072E0
Tritanopia (blue-blind)
#627B97
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7f5ce3;
/* rgb */ color: rgb(127, 92, 227);
/* oklch */ color: oklch(58.1% 0.196 291.0);
Tailwind
colors: {
  custom: {
    50: '#ab8bed',
    500: '#7f5ce3',
    950: '#000000',
  },
}
SCSS
$custom: #7f5ce3;
$custom-light: #ab8bed;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5ce3",
  "rgb": {
    "r": 127,
    "g": 92,
    "b": 227
  },
  "hsl": {
    "h": 255.556,
    "s": 70.681,
    "l": 62.549
  },
  "oklch": {
    "l": 0.58085,
    "c": 0.19582,
    "h": 291
  },
  "luminance": 0.17712
}

Semantic roles & 50–950 ramp

primary
#7F5CE3
secondary
#D9E6B5
accent
#D313A1
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7F5CE3

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

Preview Lab → · Contrast checker → · Palette generator →

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