#7B54CD#7B54CD

#7B54CD is a mid, vivid violet. Relative luminance 0.150; OKLCH L 54.9% C 0.179 H 294.6°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#7B54CD
RGBrgb(123, 84, 205)
HSLhsl(259, 55%, 57%)
HSVhsv(259, 59%, 80%)
CMYKcmyk(40%, 59%, 0%, 19.6%)
CIE-LABlab(45.58, 43.22, -57.30)
CIE-LCHlch(45.58, 71.77, 307.02°)
OKLaboklab(54.91% 0.0748 -0.1631)
OKLCHoklch(54.91% 0.179 294.6)
XYZxyz(22.3552, 14.9589, 59.4553)
Luminance0.1496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B54CD #A6CD54
analogous
#546ACD #7B54CD #B854CD
triadic
#7B54CD #CD7B54 #54CD7B
tetradic
#7B54CD #CD546A #A6CD54 #54CDB8
square
#7B54CD #CD546A #A6CD54 #54CDB8
split-complementary
#7B54CD #CDB854 #6ACD54
monochromatic
#432681 #5C34B0 #7B54CD #A083DB #C4B3E9

Accessibility & contrast

On white

5.26
#7B54CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#7B54CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B54CD
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B54CD#FFFFFF#000000##FFFFFF
##7B54CD1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD1
Deuteranopia (green-blind)
#196ACA
Tritanopia (blue-blind)
#666E88
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7b54cd;
/* rgb */ color: rgb(123, 84, 205);
/* oklch */ color: oklch(54.9% 0.179 294.6);
Tailwind
colors: {
  custom: {
    50: '#a686dd',
    500: '#7b54cd',
    950: '#000000',
  },
}
SCSS
$custom: #7b54cd;
$custom-light: #a686dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7b54cd",
  "rgb": {
    "r": 123,
    "g": 84,
    "b": 205
  },
  "hsl": {
    "h": 259.339,
    "s": 54.751,
    "l": 56.667
  },
  "oklch": {
    "l": 0.54914,
    "c": 0.1794,
    "h": 294.6
  },
  "luminance": 0.14959
}

Semantic roles & 50–950 ramp

primary
#7B54CD
secondary
#C7D7A6
accent
#DE4AAE
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7B54CD

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

Preview Lab → · Contrast checker → · Palette generator →

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