#7C54CB#7C54CB

#7C54CB is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.9% C 0.177 H 295.5°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7C54CB
RGBrgb(124, 84, 203)
HSLhsl(260, 53%, 56%)
HSVhsv(260, 59%, 80%)
CMYKcmyk(38.9%, 58.6%, 0%, 20.4%)
CIE-LABlab(45.55, 42.90, -56.19)
CIE-LCHlch(45.55, 70.70, 307.36°)
OKLaboklab(54.87% 0.0761 -0.1598)
OKLCHoklch(54.87% 0.177 295.5)
XYZxyz(22.2592, 14.9371, 58.1987)
Luminance0.1494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C54CB #A3CB54
analogous
#5468CB #7C54CB #B854CB
triadic
#7C54CB #CB7C54 #54CB7C
tetradic
#7C54CB #CB5468 #A3CB54 #54CBB8
square
#7C54CB #CB5468 #A3CB54 #54CBB8
split-complementary
#7C54CB #CBB854 #68CB54
monochromatic
#44267E #5D35AD #7C54CB #A083D9 #C4B2E8

Accessibility & contrast

On white

5.27
#7C54CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#7C54CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C54CB
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C54CB#FFFFFF#000000##FFFFFF
##7C54CB1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#056DCF
Deuteranopia (green-blind)
#206AC8
Tritanopia (blue-blind)
#686E87
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7c54cb;
/* rgb */ color: rgb(124, 84, 203);
/* oklch */ color: oklch(54.9% 0.177 295.5);
Tailwind
colors: {
  custom: {
    50: '#a786db',
    500: '#7c54cb',
    950: '#000000',
  },
}
SCSS
$custom: #7c54cb;
$custom-light: #a786db;
$custom-dark: #000000;
JSON
{
  "hex": "#7c54cb",
  "rgb": {
    "r": 124,
    "g": 84,
    "b": 203
  },
  "hsl": {
    "h": 260.168,
    "s": 53.363,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54873,
    "c": 0.17699,
    "h": 295.5
  },
  "luminance": 0.14938
}

Semantic roles & 50–950 ramp

primary
#7C54CB
secondary
#C5D6A5
accent
#DD4BAC
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7C54CB

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

Preview Lab → · Contrast checker → · Palette generator →

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