#7C5AFB#7C5AFB

#7C5AFB is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 59.3% C 0.228 H 287.0°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#7C5AFB
RGBrgb(124, 90, 251)
HSLhsl(253, 95%, 67%)
HSVhsv(253, 64%, 98%)
CMYKcmyk(50.6%, 64.1%, 0%, 1.6%)
CIE-LABlab(50.17, 52.84, -75.87)
CIE-LCHlch(50.17, 92.45, 304.86°)
OKLaboklab(59.3% 0.0665 -0.2176)
OKLCHoklch(59.3% 0.228 287)
XYZxyz(29.3758, 18.5610, 93.2829)
Luminance0.1856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5AFB #D9FB5A
analogous
#5A89FB #7C5AFB #CD5AFB
triadic
#7C5AFB #FB7C5A #5AFB7C
tetradic
#7C5AFB #FB5A89 #D9FB5A #5AFBCD
square
#7C5AFB #FB5A89 #D9FB5A #5AFBCD
split-complementary
#7C5AFB #FBCD5A #89FB5A
monochromatic
#3105D5 #4D1EFA #7C5AFB #AB96FC #DBD2FE

Accessibility & contrast

On white

4.46
#7C5AFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#7C5AFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C5AFB
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5AFB#FFFFFF#000000##000000
##7C5AFB1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BFF
Deuteranopia (green-blind)
#0073F8
Tritanopia (blue-blind)
#4C82A3
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7c5afb;
/* rgb */ color: rgb(124, 90, 251);
/* oklch */ color: oklch(59.3% 0.228 287.0);
Tailwind
colors: {
  custom: {
    50: '#ac8bfe',
    500: '#7c5afb',
    950: '#000000',
  },
}
SCSS
$custom: #7c5afb;
$custom-light: #ac8bfe;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5afb",
  "rgb": {
    "r": 124,
    "g": 90,
    "b": 251
  },
  "hsl": {
    "h": 252.671,
    "s": 95.266,
    "l": 66.863
  },
  "oklch": {
    "l": 0.59304,
    "c": 0.22755,
    "h": 287
  },
  "luminance": 0.18562
}

Semantic roles & 50–950 ramp

primary
#7C5AFB
secondary
#E7F2BF
accent
#E600B5
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7C5AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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