#7D54EB#7D54EB

#7D54EB is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.3% C 0.216 H 290.4°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#7D54EB
RGBrgb(125, 84, 235)
HSLhsl(256, 79%, 63%)
HSVhsv(256, 64%, 92%)
CMYKcmyk(46.8%, 64.3%, 0%, 7.8%)
CIE-LABlab(47.88, 51.80, -70.64)
CIE-LCHlch(47.88, 87.60, 306.25°)
OKLaboklab(57.3% 0.0753 -0.2022)
OKLCHoklch(57.3% 0.216 290.4)
XYZxyz(26.6189, 16.6978, 80.4016)
Luminance0.1670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D54EB #C2EB54
analogous
#5477EB #7D54EB #C854EB
triadic
#7D54EB #EB7D54 #54EB7D
tetradic
#7D54EB #EB5477 #C2EB54 #54EBC8
square
#7D54EB #EB5477 #C2EB54 #54EBC8
split-complementary
#7D54EB #EBC854 #77EB54
monochromatic
#3F15B0 #531DE5 #7D54EB #A78BF1 #D0C2F8

Accessibility & contrast

On white

4.84
#7D54EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#7D54EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D54EB
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D54EB#FFFFFF#000000##FFFFFF
##7D54EB1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F0
Deuteranopia (green-blind)
#006EE8
Tritanopia (blue-blind)
#5A7898
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7d54eb;
/* rgb */ color: rgb(125, 84, 235);
/* oklch */ color: oklch(57.3% 0.216 290.4);
Tailwind
colors: {
  custom: {
    50: '#ab86f2',
    500: '#7d54eb',
    950: '#000000',
  },
}
SCSS
$custom: #7d54eb;
$custom-light: #ab86f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d54eb",
  "rgb": {
    "r": 125,
    "g": 84,
    "b": 235
  },
  "hsl": {
    "h": 256.291,
    "s": 79.058,
    "l": 62.549
  },
  "oklch": {
    "l": 0.57296,
    "c": 0.2158,
    "h": 290.4
  },
  "luminance": 0.16699
}

Semantic roles & 50–950 ramp

primary
#7D54EB
secondary
#DAE9B2
accent
#DB0AA3
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7D54EB

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

Preview Lab → · Contrast checker → · Palette generator →

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