#7C5BE3#7C5BE3

#7C5BE3 is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.7% C 0.197 H 290.0°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#7C5BE3
RGBrgb(124, 91, 227)
HSLhsl(255, 71%, 62%)
HSVhsv(255, 60%, 89%)
CMYKcmyk(45.4%, 59.9%, 0%, 11%)
CIE-LABlab(48.65, 45.55, -64.87)
CIE-LCHlch(48.65, 79.27, 305.07°)
OKLaboklab(57.66% 0.0673 -0.1853)
OKLCHoklch(57.66% 0.197 290)
XYZxyz(25.9145, 17.3124, 74.6344)
Luminance0.1731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5BE3 #C2E35B
analogous
#5B7EE3 #7C5BE3 #C05BE3
triadic
#7C5BE3 #E37C5B #5BE37C
tetradic
#7C5BE3 #E35B7E #C2E35B #5BE3C0
square
#7C5BE3 #E35B7E #C2E35B #5BE3C0
split-complementary
#7C5BE3 #E3C05B #7EE35B
monochromatic
#3E1DA7 #5227DA #7C5BE3 #A68FEC #D0C4F5

Accessibility & contrast

On white

4.71
#7C5BE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#7C5BE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C5BE3
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5BE3#FFFFFF#000000##FFFFFF
##7C5BE31.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E7
Deuteranopia (green-blind)
#0070E0
Tritanopia (blue-blind)
#5C7A96
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7c5be3;
/* rgb */ color: rgb(124, 91, 227);
/* oklch */ color: oklch(57.7% 0.197 290.0);
Tailwind
colors: {
  custom: {
    50: '#a98bed',
    500: '#7c5be3',
    950: '#000000',
  },
}
SCSS
$custom: #7c5be3;
$custom-light: #a98bed;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5be3",
  "rgb": {
    "r": 124,
    "g": 91,
    "b": 227
  },
  "hsl": {
    "h": 254.559,
    "s": 70.833,
    "l": 62.353
  },
  "oklch": {
    "l": 0.57657,
    "c": 0.19717,
    "h": 290
  },
  "luminance": 0.17313
}

Semantic roles & 50–950 ramp

primary
#7C5BE3
secondary
#DAE6B4
accent
#D313A4
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7C5BE3

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

Preview Lab → · Contrast checker → · Palette generator →

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