#7C5EF8#7C5EF8

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

Color values

HEX#7C5EF8
RGBrgb(124, 94, 248)
HSLhsl(252, 92%, 67%)
HSVhsv(252, 62%, 97%)
CMYKcmyk(50%, 62.1%, 0%, 2.7%)
CIE-LABlab(50.76, 49.80, -73.23)
CIE-LCHlch(50.76, 88.56, 304.22°)
OKLaboklab(59.67% 0.0629 -0.2099)
OKLCHoklch(59.67% 0.219 286.7)
XYZxyz(29.2532, 19.0664, 90.9275)
Luminance0.1907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5EF8 #DAF85E
analogous
#5E8DF8 #7C5EF8 #C95EF8
triadic
#7C5EF8 #F87C5E #5EF87C
tetradic
#7C5EF8 #F85E8D #DAF85E #5EF8C9
square
#7C5EF8 #F85E8D #DAF85E #5EF8C9
split-complementary
#7C5EF8 #F8C95E #8DF85E
monochromatic
#3009D2 #4C23F5 #7C5EF8 #AC99FB #DBD3FD

Accessibility & contrast

On white

4.36
#7C5EF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#7C5EF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C5EF8
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5EF8#FFFFFF#000000##000000
##7C5EF81.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFD
Deuteranopia (green-blind)
#0074F5
Tritanopia (blue-blind)
#4E83A2
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7c5ef8;
/* rgb */ color: rgb(124, 94, 248);
/* oklch */ color: oklch(59.7% 0.219 286.7);
Tailwind
colors: {
  custom: {
    50: '#ab8dfc',
    500: '#7c5ef8',
    950: '#000000',
  },
}
SCSS
$custom: #7c5ef8;
$custom-light: #ab8dfc;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5ef8",
  "rgb": {
    "r": 124,
    "g": 94,
    "b": 248
  },
  "hsl": {
    "h": 251.688,
    "s": 91.667,
    "l": 67.059
  },
  "oklch": {
    "l": 0.59666,
    "c": 0.2191,
    "h": 286.7
  },
  "luminance": 0.19068
}

Semantic roles & 50–950 ramp

primary
#7C5EF8
secondary
#E8F1C0
accent
#E600B9
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7C5EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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