#7B54CF#7B54CF

#7B54CF is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.1% C 0.182 H 294.2°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#7B54CF
RGBrgb(123, 84, 207)
HSLhsl(259, 56%, 57%)
HSVhsv(259, 59%, 81%)
CMYKcmyk(40.6%, 59.4%, 0%, 18.8%)
CIE-LABlab(45.71, 43.76, -58.24)
CIE-LCHlch(45.71, 72.84, 306.92°)
OKLaboklab(55.05% 0.0747 -0.1658)
OKLCHoklch(55.05% 0.182 294.2)
XYZxyz(22.5982, 15.0561, 60.7349)
Luminance0.1506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B54CF #A8CF54
analogous
#546BCF #7B54CF #B854CF
triadic
#7B54CF #CF7B54 #54CF7B
tetradic
#7B54CF #CF546B #A8CF54 #54CFB8
square
#7B54CF #CF546B #A8CF54 #54CFB8
split-complementary
#7B54CF #CFB854 #6BCF54
monochromatic
#432584 #5B32B3 #7B54CF #A084DC #C5B4EA

Accessibility & contrast

On white

5.24
#7B54CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#7B54CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B54CF
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B54CF#FFFFFF#000000##FFFFFF
##7B54CF1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD3
Deuteranopia (green-blind)
#146ACC
Tritanopia (blue-blind)
#656F89
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7b54cf;
/* rgb */ color: rgb(123, 84, 207);
/* oklch */ color: oklch(55.1% 0.182 294.2);
Tailwind
colors: {
  custom: {
    50: '#a686de',
    500: '#7b54cf',
    950: '#000000',
  },
}
SCSS
$custom: #7b54cf;
$custom-light: #a686de;
$custom-dark: #000000;
JSON
{
  "hex": "#7b54cf",
  "rgb": {
    "r": 123,
    "g": 84,
    "b": 207
  },
  "hsl": {
    "h": 259.024,
    "s": 56.164,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55053,
    "c": 0.18187,
    "h": 294.2
  },
  "luminance": 0.15057
}

Semantic roles & 50–950 ramp

primary
#7B54CF
secondary
#C9D8A6
accent
#DF48B0
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7B54CF

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

Preview Lab → · Contrast checker → · Palette generator →

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