#7C4BCA#7C4BCA

#7C4BCA is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.5% C 0.188 H 297.4°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#7C4BCA
RGBrgb(124, 75, 202)
HSLhsl(263, 55%, 54%)
HSVhsv(263, 63%, 79%)
CMYKcmyk(38.6%, 62.9%, 0%, 20.8%)
CIE-LABlab(43.63, 47.58, -58.72)
CIE-LCHlch(43.63, 75.57, 309.02°)
OKLaboklab(53.45% 0.0866 -0.1672)
OKLCHoklch(53.45% 0.188 297.4)
XYZxyz(21.4862, 13.5812, 57.3551)
Luminance0.1358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4BCA #99CA4B
analogous
#4B5ACA #7C4BCA #BC4BCA
triadic
#7C4BCA #CA7C4B #4BCA7C
tetradic
#7C4BCA #CA4B5A #99CA4B #4BCABC
square
#7C4BCA #CA4B5A #99CA4B #4BCABC
split-complementary
#7C4BCA #CABC4B #5ACA4B
monochromatic
#442377 #5E31A7 #7C4BCA #9E7AD8 #C1AAE6

Accessibility & contrast

On white

5.65
#7C4BCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#7C4BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C4BCA
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4BCA#FFFFFF#000000##FFFFFF
##7C4BCA1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#0066C7
Tritanopia (blue-blind)
#696784
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7c4bca;
/* rgb */ color: rgb(124, 75, 202);
/* oklch */ color: oklch(53.5% 0.188 297.4);
Tailwind
colors: {
  custom: {
    50: '#a780db',
    500: '#7c4bca',
    950: '#000000',
  },
}
SCSS
$custom: #7c4bca;
$custom-light: #a780db;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4bca",
  "rgb": {
    "r": 124,
    "g": 75,
    "b": 202
  },
  "hsl": {
    "h": 263.15,
    "s": 54.506,
    "l": 54.314
  },
  "oklch": {
    "l": 0.53452,
    "c": 0.1883,
    "h": 297.4
  },
  "luminance": 0.13582
}

Semantic roles & 50–950 ramp

primary
#7C4BCA
secondary
#BFD39D
accent
#DE4AA5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7C4BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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