#7B54CC#7B54CC

#7B54CC is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.8% C 0.178 H 294.8°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7B54CC
RGBrgb(123, 84, 204)
HSLhsl(260, 54%, 56%)
HSVhsv(260, 59%, 80%)
CMYKcmyk(39.7%, 58.8%, 0%, 20%)
CIE-LABlab(45.51, 42.95, -56.83)
CIE-LCHlch(45.51, 71.24, 307.08°)
OKLaboklab(54.84% 0.0748 -0.1617)
OKLCHoklch(54.84% 0.178 294.8)
XYZxyz(22.2349, 14.9107, 58.8216)
Luminance0.1491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B54CC #A5CC54
analogous
#5469CC #7B54CC #B754CC
triadic
#7B54CC #CC7B54 #54CC7B
tetradic
#7B54CC #CC5469 #A5CC54 #54CCB7
square
#7B54CC #CC5469 #A5CC54 #54CCB7
split-complementary
#7B54CC #CCB754 #69CC54
monochromatic
#432680 #5C34AF #7B54CC #9F83DA #C4B2E8

Accessibility & contrast

On white

5.27
#7B54CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#7B54CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B54CC
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B54CC#FFFFFF#000000##FFFFFF
##7B54CC1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD0
Deuteranopia (green-blind)
#1C6AC9
Tritanopia (blue-blind)
#666E88
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7b54cc;
/* rgb */ color: rgb(123, 84, 204);
/* oklch */ color: oklch(54.8% 0.178 294.8);
Tailwind
colors: {
  custom: {
    50: '#a686dc',
    500: '#7b54cc',
    950: '#000000',
  },
}
SCSS
$custom: #7b54cc;
$custom-light: #a686dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b54cc",
  "rgb": {
    "r": 123,
    "g": 84,
    "b": 204
  },
  "hsl": {
    "h": 259.5,
    "s": 54.054,
    "l": 56.471
  },
  "oklch": {
    "l": 0.54844,
    "c": 0.17815,
    "h": 294.8
  },
  "luminance": 0.14911
}

Semantic roles & 50–950 ramp

primary
#7B54CC
secondary
#C7D7A5
accent
#DD4AAE
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7B54CC

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

Preview Lab → · Contrast checker → · Palette generator →

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