#7C5FF6#7C5FF6

#7C5FF6 is a mid, highly saturated violet. Relative luminance 0.191; OKLCH L 59.7% C 0.215 H 286.8°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#7C5FF6
RGBrgb(124, 95, 246)
HSLhsl(252, 89%, 67%)
HSVhsv(252, 61%, 96%)
CMYKcmyk(49.6%, 61.4%, 0%, 3.5%)
CIE-LABlab(50.83, 48.68, -72.01)
CIE-LCHlch(50.83, 86.92, 304.06°)
OKLaboklab(59.67% 0.0621 -0.2063)
OKLCHoklch(59.67% 0.215 286.8)
XYZxyz(29.0340, 19.1219, 89.3320)
Luminance0.1912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5FF6 #D9F65F
analogous
#5F8EF6 #7C5FF6 #C75FF6
triadic
#7C5FF6 #F67C5F #5FF67C
tetradic
#7C5FF6 #F65F8E #D9F65F #5FF6C7
square
#7C5FF6 #F65F8E #D9F65F #5FF6C7
split-complementary
#7C5FF6 #F6C75F #8EF65F
monochromatic
#310CCF #4D25F3 #7C5FF6 #AB99F9 #DBD3FD

Accessibility & contrast

On white

4.35
#7C5FF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#7C5FF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C5FF6
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5FF6#FFFFFF#000000##000000
##7C5FF61.004.354.824.82
#FFFFFF4.351.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFB
Deuteranopia (green-blind)
#0075F3
Tritanopia (blue-blind)
#5083A2
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7c5ff6;
/* rgb */ color: rgb(124, 95, 246);
/* oklch */ color: oklch(59.7% 0.215 286.8);
Tailwind
colors: {
  custom: {
    50: '#ab8efa',
    500: '#7c5ff6',
    950: '#000000',
  },
}
SCSS
$custom: #7c5ff6;
$custom-light: #ab8efa;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5ff6",
  "rgb": {
    "r": 124,
    "g": 95,
    "b": 246
  },
  "hsl": {
    "h": 251.523,
    "s": 89.349,
    "l": 66.863
  },
  "oklch": {
    "l": 0.59668,
    "c": 0.21543,
    "h": 286.8
  },
  "luminance": 0.19123
}

Semantic roles & 50–950 ramp

primary
#7C5FF6
secondary
#E7F1C0
accent
#E600B9
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7C5FF6

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

Preview Lab → · Contrast checker → · Palette generator →

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