#7B54C8#7B54C8

#7B54C8 is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.6% C 0.173 H 295.6°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#7B54C8
RGBrgb(123, 84, 200)
HSLhsl(260, 51%, 56%)
HSVhsv(260, 58%, 78%)
CMYKcmyk(38.5%, 58%, 0%, 21.6%)
CIE-LABlab(45.25, 41.87, -54.95)
CIE-LCHlch(45.25, 69.08, 307.31°)
OKLaboklab(54.57% 0.0748 -0.1562)
OKLCHoklch(54.57% 0.173 295.6)
XYZxyz(21.7613, 14.7213, 56.3274)
Luminance0.1472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B54C8 #A1C854
analogous
#5467C8 #7B54C8 #B554C8
triadic
#7B54C8 #C87B54 #54C87B
tetradic
#7B54C8 #C85467 #A1C854 #54C8B5
square
#7B54C8 #C85467 #A1C854 #54C8B5
split-complementary
#7B54C8 #C8B554 #67C854
monochromatic
#43277A #5D36A9 #7B54C8 #9F82D7 #C2B1E6

Accessibility & contrast

On white

5.32
#7B54C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#7B54C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B54C8
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B54C8#FFFFFF#000000##FFFFFF
##7B54C81.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#106CCC
Deuteranopia (green-blind)
#2469C5
Tritanopia (blue-blind)
#686D86
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7b54c8;
/* rgb */ color: rgb(123, 84, 200);
/* oklch */ color: oklch(54.6% 0.173 295.6);
Tailwind
colors: {
  custom: {
    50: '#a685d9',
    500: '#7b54c8',
    950: '#000000',
  },
}
SCSS
$custom: #7b54c8;
$custom-light: #a685d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b54c8",
  "rgb": {
    "r": 123,
    "g": 84,
    "b": 200
  },
  "hsl": {
    "h": 260.172,
    "s": 51.327,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54569,
    "c": 0.17317,
    "h": 295.6
  },
  "luminance": 0.14722
}

Semantic roles & 50–950 ramp

primary
#7B54C8
secondary
#C4D4A4
accent
#DB4DAB
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7B54C8

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

Preview Lab → · Contrast checker → · Palette generator →

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