#7D54CB#7D54CB

#7D54CB is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.0% C 0.177 H 295.9°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#7D54CB
RGBrgb(125, 84, 203)
HSLhsl(261, 53%, 56%)
HSVhsv(261, 59%, 80%)
CMYKcmyk(38.4%, 58.6%, 0%, 20.4%)
CIE-LABlab(45.65, 43.13, -56.02)
CIE-LCHlch(45.65, 70.70, 307.59°)
OKLaboklab(54.97% 0.0774 -0.1593)
OKLCHoklch(54.97% 0.177 295.9)
XYZxyz(22.4045, 15.0120, 58.2055)
Luminance0.1501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D54CB #A2CB54
analogous
#5467CB #7D54CB #B954CB
triadic
#7D54CB #CB7D54 #54CB7D
tetradic
#7D54CB #CB5467 #A2CB54 #54CBB9
square
#7D54CB #CB5467 #A2CB54 #54CBB9
split-complementary
#7D54CB #CBB954 #67CB54
monochromatic
#45267E #5E35AD #7D54CB #A183D9 #C4B2E8

Accessibility & contrast

On white

5.25
#7D54CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#7D54CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D54CB
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D54CB#FFFFFF#000000##FFFFFF
##7D54CB1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#076DCF
Deuteranopia (green-blind)
#216AC8
Tritanopia (blue-blind)
#6A6E87
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7d54cb;
/* rgb */ color: rgb(125, 84, 203);
/* oklch */ color: oklch(55.0% 0.177 295.9);
Tailwind
colors: {
  custom: {
    50: '#a786db',
    500: '#7d54cb',
    950: '#000000',
  },
}
SCSS
$custom: #7d54cb;
$custom-light: #a786db;
$custom-dark: #000000;
JSON
{
  "hex": "#7d54cb",
  "rgb": {
    "r": 125,
    "g": 84,
    "b": 203
  },
  "hsl": {
    "h": 260.672,
    "s": 53.363,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54973,
    "c": 0.17709,
    "h": 295.9
  },
  "luminance": 0.15012
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D54CB

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

Preview Lab → · Contrast checker → · Palette generator →

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