#7D54C8#7D54C8

#7D54C8 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.8% C 0.173 H 296.5°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#7D54C8
RGBrgb(125, 84, 200)
HSLhsl(261, 51%, 56%)
HSVhsv(261, 58%, 78%)
CMYKcmyk(37.5%, 58%, 0%, 21.6%)
CIE-LABlab(45.46, 42.33, -54.61)
CIE-LCHlch(45.46, 69.09, 307.78°)
OKLaboklab(54.77% 0.0775 -0.1551)
OKLCHoklch(54.77% 0.173 296.5)
XYZxyz(22.0504, 14.8704, 56.3409)
Luminance0.1487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D54C8 #9FC854
analogous
#5465C8 #7D54C8 #B754C8
triadic
#7D54C8 #C87D54 #54C87D
tetradic
#7D54C8 #C85465 #9FC854 #54C8B7
square
#7D54C8 #C85465 #9FC854 #54C8B7
split-complementary
#7D54C8 #C8B754 #65C854
monochromatic
#45277A #5F36A9 #7D54C8 #A082D7 #C3B1E6

Accessibility & contrast

On white

5.28
#7D54C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#7D54C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D54C8
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D54C8#FFFFFF#000000##FFFFFF
##7D54C81.005.283.975.28
#FFFFFF5.281.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#126CCC
Deuteranopia (green-blind)
#276AC5
Tritanopia (blue-blind)
#6B6D86
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7d54c8;
/* rgb */ color: rgb(125, 84, 200);
/* oklch */ color: oklch(54.8% 0.173 296.5);
Tailwind
colors: {
  custom: {
    50: '#a786d9',
    500: '#7d54c8',
    950: '#000000',
  },
}
SCSS
$custom: #7d54c8;
$custom-light: #a786d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d54c8",
  "rgb": {
    "r": 125,
    "g": 84,
    "b": 200
  },
  "hsl": {
    "h": 261.207,
    "s": 51.327,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54768,
    "c": 0.17336,
    "h": 296.5
  },
  "luminance": 0.14871
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D54C8

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

Preview Lab → · Contrast checker → · Palette generator →

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