#7C5CD7#7C5CD7

#7C5CD7 is a mid, vivid violet. Relative luminance 0.168; OKLCH L 57.0% C 0.181 H 291.6°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#7C5CD7
RGBrgb(124, 92, 215)
HSLhsl(256, 61%, 60%)
HSVhsv(256, 57%, 84%)
CMYKcmyk(42.3%, 57.2%, 0%, 15.7%)
CIE-LABlab(48.06, 41.64, -59.01)
CIE-LCHlch(48.06, 72.23, 305.21°)
OKLaboklab(56.97% 0.0666 -0.1681)
OKLCHoklch(56.97% 0.181 291.6)
XYZxyz(24.4017, 16.8449, 66.2425)
Luminance0.1685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5CD7 #B7D75C
analogous
#5C79D7 #7C5CD7 #BA5CD7
triadic
#7C5CD7 #D77C5C #5CD77C
tetradic
#7C5CD7 #D75C79 #B7D75C #5CD7BA
square
#7C5CD7 #D75C79 #B7D75C #5CD7BA
split-complementary
#7C5CD7 #D7BA5C #79D75C
monochromatic
#412494 #5730C5 #7C5CD7 #A38DE3 #CBBEEF

Accessibility & contrast

On white

4.81
#7C5CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#7C5CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C5CD7
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5CD7#FFFFFF#000000##FFFFFF
##7C5CD71.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D74DB
Deuteranopia (green-blind)
#1B70D4
Tritanopia (blue-blind)
#627791
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7c5cd7;
/* rgb */ color: rgb(124, 92, 215);
/* oklch */ color: oklch(57.0% 0.181 291.6);
Tailwind
colors: {
  custom: {
    50: '#a78be4',
    500: '#7c5cd7',
    950: '#000000',
  },
}
SCSS
$custom: #7c5cd7;
$custom-light: #a78be4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5cd7",
  "rgb": {
    "r": 124,
    "g": 92,
    "b": 215
  },
  "hsl": {
    "h": 255.61,
    "s": 60.591,
    "l": 60.196
  },
  "oklch": {
    "l": 0.56971,
    "c": 0.18077,
    "h": 291.6
  },
  "luminance": 0.16846
}

Semantic roles & 50–950 ramp

primary
#7C5CD7
secondary
#D3DFB0
accent
#C81D9C
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7C5CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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