#7C54C8#7C54C8

#7C54C8 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.7% C 0.173 H 296.1°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#7C54C8
RGBrgb(124, 84, 200)
HSLhsl(261, 51%, 56%)
HSVhsv(261, 58%, 78%)
CMYKcmyk(38%, 58%, 0%, 21.6%)
CIE-LABlab(45.35, 42.10, -54.78)
CIE-LCHlch(45.35, 69.09, 307.55°)
OKLaboklab(54.67% 0.0762 -0.1556)
OKLCHoklch(54.67% 0.173 296.1)
XYZxyz(21.9051, 14.7955, 56.3341)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C54C8 #A0C854
analogous
#5466C8 #7C54C8 #B654C8
triadic
#7C54C8 #C87C54 #54C87C
tetradic
#7C54C8 #C85466 #A0C854 #54C8B6
square
#7C54C8 #C85466 #A0C854 #54C8B6
split-complementary
#7C54C8 #C8B654 #66C854
monochromatic
#44277A #5E36A9 #7C54C8 #9F82D7 #C3B1E6

Accessibility & contrast

On white

5.30
#7C54C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#7C54C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C54C8
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C54C8#FFFFFF#000000##FFFFFF
##7C54C81.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#116CCC
Deuteranopia (green-blind)
#256AC5
Tritanopia (blue-blind)
#6A6D86
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7c54c8;
/* rgb */ color: rgb(124, 84, 200);
/* oklch */ color: oklch(54.7% 0.173 296.1);
Tailwind
colors: {
  custom: {
    50: '#a686d9',
    500: '#7c54c8',
    950: '#000000',
  },
}
SCSS
$custom: #7c54c8;
$custom-light: #a686d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7c54c8",
  "rgb": {
    "r": 124,
    "g": 84,
    "b": 200
  },
  "hsl": {
    "h": 260.69,
    "s": 51.327,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54668,
    "c": 0.17326,
    "h": 296.1
  },
  "luminance": 0.14796
}

Semantic roles & 50–950 ramp

primary
#7C54C8
secondary
#C3D4A4
accent
#DB4DAA
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7C54C8

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

Preview Lab → · Contrast checker → · Palette generator →

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