#7B54D2#7B54D2

#7B54D2 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.3% C 0.186 H 293.7°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#7B54D2
RGBrgb(123, 84, 210)
HSLhsl(259, 58%, 58%)
HSVhsv(259, 60%, 82%)
CMYKcmyk(41.4%, 60%, 0%, 17.6%)
CIE-LABlab(45.91, 44.57, -59.63)
CIE-LCHlch(45.91, 74.45, 306.77°)
OKLaboklab(55.27% 0.0746 -0.1699)
OKLCHoklch(55.27% 0.186 293.7)
XYZxyz(22.9684, 15.2042, 62.6848)
Luminance0.1520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B54D2 #ABD254
analogous
#546CD2 #7B54D2 #BA54D2
triadic
#7B54D2 #D27B54 #54D27B
tetradic
#7B54D2 #D2546C #ABD254 #54D2BA
square
#7B54D2 #D2546C #ABD254 #54D2BA
split-complementary
#7B54D2 #D2BA54 #6CD254
monochromatic
#432488 #5B31B8 #7B54D2 #A084DF #C6B5EB

Accessibility & contrast

On white

5.20
#7B54D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#7B54D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B54D2
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B54D2#FFFFFF#000000##FFFFFF
##7B54D21.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED6
Deuteranopia (green-blind)
#076BCF
Tritanopia (blue-blind)
#64708B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7b54d2;
/* rgb */ color: rgb(123, 84, 210);
/* oklch */ color: oklch(55.3% 0.186 293.7);
Tailwind
colors: {
  custom: {
    50: '#a786e1',
    500: '#7b54d2',
    950: '#000000',
  },
}
SCSS
$custom: #7b54d2;
$custom-light: #a786e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b54d2",
  "rgb": {
    "r": 123,
    "g": 84,
    "b": 210
  },
  "hsl": {
    "h": 258.571,
    "s": 58.333,
    "l": 57.647
  },
  "oklch": {
    "l": 0.55265,
    "c": 0.18557,
    "h": 293.7
  },
  "luminance": 0.15205
}

Semantic roles & 50–950 ramp

primary
#7B54D2
secondary
#CBDAA8
accent
#E246B1
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7B54D2

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

Preview Lab → · Contrast checker → · Palette generator →

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