#7C5FEB#7C5FEB

#7C5FEB is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 58.9% C 0.202 H 288.1°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#7C5FEB
RGBrgb(124, 95, 235)
HSLhsl(252, 78%, 65%)
HSVhsv(252, 60%, 92%)
CMYKcmyk(47.2%, 59.6%, 0%, 7.8%)
CIE-LABlab(50.06, 45.55, -67.11)
CIE-LCHlch(50.06, 81.11, 304.17°)
OKLaboklab(58.86% 0.0627 -0.1919)
OKLCHoklch(58.86% 0.202 288.1)
XYZxyz(27.3955, 18.4665, 80.7021)
Luminance0.1847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5FEB #CEEB5F
analogous
#5F88EB #7C5FEB #C25FEB
triadic
#7C5FEB #EB7C5F #5FEB7C
tetradic
#7C5FEB #EB5F88 #CEEB5F #5FEBC2
square
#7C5FEB #EB5F88 #CEEB5F #5FEBC2
split-complementary
#7C5FEB #EBC25F #88EB5F
monochromatic
#3917B9 #4F29E4 #7C5FEB #A995F2 #D5CCF9

Accessibility & contrast

On white

4.47
#7C5FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#7C5FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C5FEB
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5FEB#FFFFFF#000000##000000
##7C5FEB1.004.474.694.69
#FFFFFF4.471.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF0
Deuteranopia (green-blind)
#0073E8
Tritanopia (blue-blind)
#577F9C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7c5feb;
/* rgb */ color: rgb(124, 95, 235);
/* oklch */ color: oklch(58.9% 0.202 288.1);
Tailwind
colors: {
  custom: {
    50: '#a98df2',
    500: '#7c5feb',
    950: '#000000',
  },
}
SCSS
$custom: #7c5feb;
$custom-light: #a98df2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5feb",
  "rgb": {
    "r": 124,
    "g": 95,
    "b": 235
  },
  "hsl": {
    "h": 252.429,
    "s": 77.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.5886,
    "c": 0.20186,
    "h": 288.1
  },
  "luminance": 0.18468
}

Semantic roles & 50–950 ramp

primary
#7C5FEB
secondary
#E1EBBB
accent
#DA0BAF
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7C5FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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