#7B54CB#7B54CB

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

Color values

HEX#7B54CB
RGBrgb(123, 84, 203)
HSLhsl(260, 53%, 56%)
HSVhsv(260, 59%, 80%)
CMYKcmyk(39.4%, 58.6%, 0%, 20.4%)
CIE-LABlab(45.45, 42.68, -56.36)
CIE-LCHlch(45.45, 70.70, 307.13°)
OKLaboklab(54.78% 0.0748 -0.1603)
OKLCHoklch(54.78% 0.177 295)
XYZxyz(22.1154, 14.8629, 58.1920)
Luminance0.1486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B54CB #A4CB54
analogous
#5469CB #7B54CB #B754CB
triadic
#7B54CB #CB7B54 #54CB7B
tetradic
#7B54CB #CB5469 #A4CB54 #54CBB7
square
#7B54CB #CB5469 #A4CB54 #54CBB7
split-complementary
#7B54CB #CBB754 #69CB54
monochromatic
#43267E #5C35AD #7B54CB #9F83D9 #C3B2E8

Accessibility & contrast

On white

5.29
#7B54CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#7B54CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B54CB
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B54CB#FFFFFF#000000##FFFFFF
##7B54CB1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#046DCF
Deuteranopia (green-blind)
#1E6AC8
Tritanopia (blue-blind)
#676E87
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7b54cb;
/* rgb */ color: rgb(123, 84, 203);
/* oklch */ color: oklch(54.8% 0.177 295.0);
Tailwind
colors: {
  custom: {
    50: '#a686db',
    500: '#7b54cb',
    950: '#000000',
  },
}
SCSS
$custom: #7b54cb;
$custom-light: #a686db;
$custom-dark: #000000;
JSON
{
  "hex": "#7b54cb",
  "rgb": {
    "r": 123,
    "g": 84,
    "b": 203
  },
  "hsl": {
    "h": 259.664,
    "s": 53.363,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54775,
    "c": 0.17691,
    "h": 295
  },
  "luminance": 0.14863
}

Semantic roles & 50–950 ramp

primary
#7B54CB
secondary
#C6D6A5
accent
#DD4BAD
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7B54CB

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

Preview Lab → · Contrast checker → · Palette generator →

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