#7C5FF4#7C5FF4

#7C5FF4 is a mid, highly saturated violet. Relative luminance 0.190; OKLCH L 59.5% C 0.213 H 287.0°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#7C5FF4
RGBrgb(124, 95, 244)
HSLhsl(252, 87%, 66%)
HSVhsv(252, 61%, 96%)
CMYKcmyk(49.2%, 61.1%, 0%, 4.3%)
CIE-LABlab(50.69, 48.11, -71.12)
CIE-LCHlch(50.69, 85.87, 304.08°)
OKLaboklab(59.52% 0.0622 -0.2037)
OKLCHoklch(59.52% 0.213 287)
XYZxyz(28.7287, 18.9998, 87.7240)
Luminance0.1900 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5FF4 #D7F45F
analogous
#5F8DF4 #7C5FF4 #C75FF4
triadic
#7C5FF4 #F47C5F #5FF47C
tetradic
#7C5FF4 #F45F8D #D7F45F #5FF4C7
square
#7C5FF4 #F45F8D #D7F45F #5FF4C7
split-complementary
#7C5FF4 #F4C75F #8DF45F
monochromatic
#330ECB #4D26F0 #7C5FF4 #AB98F8 #DAD2FC

Accessibility & contrast

On white

4.37
#7C5FF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#7C5FF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C5FF4
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5FF4#FFFFFF#000000##000000
##7C5FF41.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF9
Deuteranopia (green-blind)
#0075F1
Tritanopia (blue-blind)
#5182A1
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7c5ff4;
/* rgb */ color: rgb(124, 95, 244);
/* oklch */ color: oklch(59.5% 0.213 287.0);
Tailwind
colors: {
  custom: {
    50: '#ab8ef9',
    500: '#7c5ff4',
    950: '#000000',
  },
}
SCSS
$custom: #7c5ff4;
$custom-light: #ab8ef9;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5ff4",
  "rgb": {
    "r": 124,
    "g": 95,
    "b": 244
  },
  "hsl": {
    "h": 251.678,
    "s": 87.135,
    "l": 66.471
  },
  "oklch": {
    "l": 0.59519,
    "c": 0.21298,
    "h": 287
  },
  "luminance": 0.19001
}

Semantic roles & 50–950 ramp

primary
#7C5FF4
secondary
#E6F0BF
accent
#E402B8
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7C5FF4

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

Preview Lab → · Contrast checker → · Palette generator →

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