#7B54E7#7B54E7

#7B54E7 is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 56.8% C 0.211 H 290.3°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#7B54E7
RGBrgb(123, 84, 231)
HSLhsl(256, 75%, 62%)
HSVhsv(256, 64%, 91%)
CMYKcmyk(46.8%, 63.6%, 0%, 9.4%)
CIE-LABlab(47.39, 50.33, -69.18)
CIE-LCHlch(47.39, 85.55, 306.03°)
OKLaboklab(56.81% 0.0731 -0.198)
OKLCHoklch(56.81% 0.211 290.3)
XYZxyz(25.7584, 16.3201, 77.3787)
Luminance0.1632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B54E7 #C0E754
analogous
#5477E7 #7B54E7 #C454E7
triadic
#7B54E7 #E77B54 #54E77B
tetradic
#7B54E7 #E75477 #C0E754 #54E7C4
square
#7B54E7 #E75477 #C0E754 #54E7C4
split-complementary
#7B54E7 #E7C454 #77E754
monochromatic
#3E18A9 #521FDF #7B54E7 #A48AEF #CEBFF6

Accessibility & contrast

On white

4.92
#7B54E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#7B54E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B54E7
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B54E7#FFFFFF#000000##FFFFFF
##7B54E71.004.924.264.92
#FFFFFF4.921.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073EC
Deuteranopia (green-blind)
#006DE4
Tritanopia (blue-blind)
#597796
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7b54e7;
/* rgb */ color: rgb(123, 84, 231);
/* oklch */ color: oklch(56.8% 0.211 290.3);
Tailwind
colors: {
  custom: {
    50: '#a986f0',
    500: '#7b54e7',
    950: '#000000',
  },
}
SCSS
$custom: #7b54e7;
$custom-light: #a986f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b54e7",
  "rgb": {
    "r": 123,
    "g": 84,
    "b": 231
  },
  "hsl": {
    "h": 255.918,
    "s": 75.385,
    "l": 61.765
  },
  "oklch": {
    "l": 0.56808,
    "c": 0.21106,
    "h": 290.3
  },
  "luminance": 0.16321
}

Semantic roles & 50–950 ramp

primary
#7B54E7
secondary
#D8E7B0
accent
#D80EA2
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7B54E7

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

Preview Lab → · Contrast checker → · Palette generator →

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