#7B54EB#7B54EB

#7B54EB is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.1% C 0.216 H 289.7°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7B54EB
RGBrgb(123, 84, 235)
HSLhsl(255, 79%, 63%)
HSVhsv(255, 64%, 92%)
CMYKcmyk(47.7%, 64.3%, 0%, 7.8%)
CIE-LABlab(47.69, 51.43, -70.96)
CIE-LCHlch(47.69, 87.64, 305.94°)
OKLaboklab(57.11% 0.0726 -0.2032)
OKLCHoklch(57.11% 0.216 289.7)
XYZxyz(26.3298, 16.5487, 80.3881)
Luminance0.1655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B54EB #C4EB54
analogous
#5478EB #7B54EB #C754EB
triadic
#7B54EB #EB7B54 #54EB7B
tetradic
#7B54EB #EB5478 #C4EB54 #54EBC7
square
#7B54EB #EB5478 #C4EB54 #54EBC7
split-complementary
#7B54EB #EBC754 #78EB54
monochromatic
#3D15B0 #511DE5 #7B54EB #A58BF1 #D0C2F8

Accessibility & contrast

On white

4.87
#7B54EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7B54EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B54EB
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B54EB#FFFFFF#000000##FFFFFF
##7B54EB1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F0
Deuteranopia (green-blind)
#006EE8
Tritanopia (blue-blind)
#567998
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7b54eb;
/* rgb */ color: rgb(123, 84, 235);
/* oklch */ color: oklch(57.1% 0.216 289.7);
Tailwind
colors: {
  custom: {
    50: '#aa86f2',
    500: '#7b54eb',
    950: '#000000',
  },
}
SCSS
$custom: #7b54eb;
$custom-light: #aa86f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b54eb",
  "rgb": {
    "r": 123,
    "g": 84,
    "b": 235
  },
  "hsl": {
    "h": 255.497,
    "s": 79.058,
    "l": 62.549
  },
  "oklch": {
    "l": 0.57113,
    "c": 0.21583,
    "h": 289.7
  },
  "luminance": 0.1655
}

Semantic roles & 50–950 ramp

primary
#7B54EB
secondary
#DBE9B2
accent
#DB0AA5
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7B54EB

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

Preview Lab → · Contrast checker → · Palette generator →

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