#7B54E8#7B54E8

#7B54E8 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 56.9% C 0.212 H 290.1°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#7B54E8
RGBrgb(123, 84, 232)
HSLhsl(256, 76%, 62%)
HSVhsv(256, 64%, 91%)
CMYKcmyk(47%, 63.8%, 0%, 9%)
CIE-LABlab(47.47, 50.60, -69.63)
CIE-LCHlch(47.47, 86.07, 306.01°)
OKLaboklab(56.88% 0.073 -0.1993)
OKLCHoklch(56.88% 0.212 290.1)
XYZxyz(25.9001, 16.3768, 78.1247)
Luminance0.1638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B54E8 #C1E854
analogous
#5477E8 #7B54E8 #C554E8
triadic
#7B54E8 #E87B54 #54E87B
tetradic
#7B54E8 #E85477 #C1E854 #54E8C5
square
#7B54E8 #E85477 #C1E854 #54E8C5
split-complementary
#7B54E8 #E8C554 #77E854
monochromatic
#3E17AB #511EE1 #7B54E8 #A58AEF #CEC0F7

Accessibility & contrast

On white

4.91
#7B54E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#7B54E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B54E8
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B54E8#FFFFFF#000000##FFFFFF
##7B54E81.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073ED
Deuteranopia (green-blind)
#006DE5
Tritanopia (blue-blind)
#587797
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7b54e8;
/* rgb */ color: rgb(123, 84, 232);
/* oklch */ color: oklch(56.9% 0.212 290.1);
Tailwind
colors: {
  custom: {
    50: '#a986f0',
    500: '#7b54e8',
    950: '#000000',
  },
}
SCSS
$custom: #7b54e8;
$custom-light: #a986f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b54e8",
  "rgb": {
    "r": 123,
    "g": 84,
    "b": 232
  },
  "hsl": {
    "h": 255.811,
    "s": 76.289,
    "l": 61.961
  },
  "oklch": {
    "l": 0.56884,
    "c": 0.21225,
    "h": 290.1
  },
  "luminance": 0.16378
}

Semantic roles & 50–950 ramp

primary
#7B54E8
secondary
#D9E7B1
accent
#D80DA3
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7B54E8

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

Preview Lab → · Contrast checker → · Palette generator →

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