#7C5BE5#7C5BE5

#7C5BE5 is a mid, vivid violet. Relative luminance 0.174; OKLCH L 57.8% C 0.200 H 289.7°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#7C5BE5
RGBrgb(124, 91, 229)
HSLhsl(254, 73%, 63%)
HSVhsv(254, 60%, 90%)
CMYKcmyk(45.9%, 60.3%, 0%, 10.2%)
CIE-LABlab(48.79, 46.11, -65.78)
CIE-LCHlch(48.79, 80.33, 305.03°)
OKLaboklab(57.8% 0.0673 -0.188)
OKLCHoklch(57.8% 0.2 289.7)
XYZxyz(26.1921, 17.4234, 76.0965)
Luminance0.1742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5BE5 #C4E55B
analogous
#5B7FE5 #7C5BE5 #C15BE5
triadic
#7C5BE5 #E57C5B #5BE57C
tetradic
#7C5BE5 #E55B7F #C4E55B #5BE5C1
square
#7C5BE5 #E55B7F #C4E55B #5BE5C1
split-complementary
#7C5BE5 #E5C15B #7FE55B
monochromatic
#3D1BAB #5226DD #7C5BE5 #A690ED #D0C5F6

Accessibility & contrast

On white

4.68
#7C5BE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#7C5BE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C5BE5
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5BE5#FFFFFF#000000##FFFFFF
##7C5BE51.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E9
Deuteranopia (green-blind)
#0071E2
Tritanopia (blue-blind)
#5B7B97
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7c5be5;
/* rgb */ color: rgb(124, 91, 229);
/* oklch */ color: oklch(57.8% 0.200 289.7);
Tailwind
colors: {
  custom: {
    50: '#a98bee',
    500: '#7c5be5',
    950: '#000000',
  },
}
SCSS
$custom: #7c5be5;
$custom-light: #a98bee;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5be5",
  "rgb": {
    "r": 124,
    "g": 91,
    "b": 229
  },
  "hsl": {
    "h": 254.348,
    "s": 72.632,
    "l": 62.745
  },
  "oklch": {
    "l": 0.57801,
    "c": 0.19965,
    "h": 289.7
  },
  "luminance": 0.17424
}

Semantic roles & 50–950 ramp

primary
#7C5BE5
secondary
#DBE7B5
accent
#D511A6
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7C5BE5

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

Preview Lab → · Contrast checker → · Palette generator →

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