#7F5CF5#7F5CF5

#7F5CF5 is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.4% C 0.218 H 288.5°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#7F5CF5
RGBrgb(127, 92, 245)
HSLhsl(254, 88%, 66%)
HSVhsv(254, 62%, 96%)
CMYKcmyk(48.2%, 62.4%, 0%, 3.9%)
CIE-LABlab(50.40, 50.61, -72.13)
CIE-LCHlch(50.40, 88.11, 305.05°)
OKLaboklab(59.4% 0.069 -0.2066)
OKLCHoklch(59.4% 0.218 288.5)
XYZxyz(29.0562, 18.7576, 88.4581)
Luminance0.1876 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5CF5 #D2F55C
analogous
#5C85F5 #7F5CF5 #CB5CF5
triadic
#7F5CF5 #F57F5C #5CF57F
tetradic
#7F5CF5 #F55C85 #D2F55C #5CF5CB
square
#7F5CF5 #F55C85 #D2F55C #5CF5CB
split-complementary
#7F5CF5 #F5CB5C #85F55C
monochromatic
#380CCA #5222F1 #7F5CF5 #AC96F9 #DACFFC

Accessibility & contrast

On white

4.42
#7F5CF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#7F5CF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5CF5
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5CF5#FFFFFF#000000##000000
##7F5CF51.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BFA
Deuteranopia (green-blind)
#0074F2
Tritanopia (blue-blind)
#5781A0
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7f5cf5;
/* rgb */ color: rgb(127, 92, 245);
/* oklch */ color: oklch(59.4% 0.218 288.5);
Tailwind
colors: {
  custom: {
    50: '#ad8cf9',
    500: '#7f5cf5',
    950: '#000000',
  },
}
SCSS
$custom: #7f5cf5;
$custom-light: #ad8cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5cf5",
  "rgb": {
    "r": 127,
    "g": 92,
    "b": 245
  },
  "hsl": {
    "h": 253.725,
    "s": 88.439,
    "l": 66.078
  },
  "oklch": {
    "l": 0.59399,
    "c": 0.21778,
    "h": 288.5
  },
  "luminance": 0.18759
}

Semantic roles & 50–950 ramp

primary
#7F5CF5
secondary
#E4F0BD
accent
#E500B1
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5CF5

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

Preview Lab → · Contrast checker → · Palette generator →

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