#7C5BF5#7C5BF5

#7C5BF5 is a mid, highly saturated violet. Relative luminance 0.184; OKLCH L 59.0% C 0.219 H 287.6°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#7C5BF5
RGBrgb(124, 91, 245)
HSLhsl(253, 89%, 66%)
HSVhsv(253, 63%, 96%)
CMYKcmyk(49.4%, 62.9%, 0%, 3.9%)
CIE-LABlab(49.93, 50.61, -72.92)
CIE-LCHlch(49.93, 88.76, 304.76°)
OKLaboklab(58.99% 0.0661 -0.209)
OKLCHoklch(58.99% 0.219 287.6)
XYZxyz(28.5299, 18.3585, 88.4088)
Luminance0.1836 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5BF5 #D4F55B
analogous
#5B87F5 #7C5BF5 #C95BF5
triadic
#7C5BF5 #F57C5B #5BF57C
tetradic
#7C5BF5 #F55B87 #D4F55B #5BF5C9
square
#7C5BF5 #F55B87 #D4F55B #5BF5C9
split-complementary
#7C5BF5 #F5C95B #87F55B
monochromatic
#350CC9 #4E21F1 #7C5BF5 #AA95F9 #D8CEFC

Accessibility & contrast

On white

4.49
#7C5BF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.67
#7C5BF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C5BF5
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5BF5#FFFFFF#000000##000000
##7C5BF51.004.494.674.67
#FFFFFF4.491.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AFA
Deuteranopia (green-blind)
#0073F2
Tritanopia (blue-blind)
#5180A0
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7c5bf5;
/* rgb */ color: rgb(124, 91, 245);
/* oklch */ color: oklch(59.0% 0.219 287.6);
Tailwind
colors: {
  custom: {
    50: '#ab8bf9',
    500: '#7c5bf5',
    950: '#000000',
  },
}
SCSS
$custom: #7c5bf5;
$custom-light: #ab8bf9;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5bf5",
  "rgb": {
    "r": 124,
    "g": 91,
    "b": 245
  },
  "hsl": {
    "h": 252.857,
    "s": 88.506,
    "l": 65.882
  },
  "oklch": {
    "l": 0.5899,
    "c": 0.21917,
    "h": 287.6
  },
  "luminance": 0.1836
}

Semantic roles & 50–950 ramp

primary
#7C5BF5
secondary
#E4EFBC
accent
#E500B4
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7C5BF5

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

Preview Lab → · Contrast checker → · Palette generator →

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