#7D54C2#7D54C2

#7D54C2 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.4% C 0.166 H 297.8°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#7D54C2
RGBrgb(125, 84, 194)
HSLhsl(262, 47%, 55%)
HSVhsv(262, 57%, 76%)
CMYKcmyk(35.6%, 56.7%, 0%, 23.9%)
CIE-LABlab(45.08, 40.75, -51.75)
CIE-LCHlch(45.08, 65.87, 308.22°)
OKLaboklab(54.37% 0.0775 -0.1467)
OKLCHoklch(54.37% 0.166 297.8)
XYZxyz(21.3629, 14.5954, 52.7202)
Luminance0.1460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D54C2 #99C254
analogous
#5462C2 #7D54C2 #B454C2
triadic
#7D54C2 #C27D54 #54C27D
tetradic
#7D54C2 #C25462 #99C254 #54C2B4
square
#7D54C2 #C25462 #99C254 #54C2B4
split-complementary
#7D54C2 #C2B454 #62C254
monochromatic
#442973 #5F39A0 #7D54C2 #9F81D2 #C2AEE2

Accessibility & contrast

On white

5.36
#7D54C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#7D54C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D54C2
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D54C2#FFFFFF#000000##FFFFFF
##7D54C21.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F6BC6
Deuteranopia (green-blind)
#2F69C0
Tritanopia (blue-blind)
#6D6B83
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7d54c2;
/* rgb */ color: rgb(125, 84, 194);
/* oklch */ color: oklch(54.4% 0.166 297.8);
Tailwind
colors: {
  custom: {
    50: '#a785d5',
    500: '#7d54c2',
    950: '#000000',
  },
}
SCSS
$custom: #7d54c2;
$custom-light: #a785d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d54c2",
  "rgb": {
    "r": 125,
    "g": 84,
    "b": 194
  },
  "hsl": {
    "h": 262.364,
    "s": 47.414,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54366,
    "c": 0.1659,
    "h": 297.8
  },
  "luminance": 0.14596
}

Semantic roles & 50–950 ramp

primary
#7D54C2
secondary
#BFD0A2
accent
#D751A5
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #7D54C2

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

Preview Lab → · Contrast checker → · Palette generator →

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