#7B54DD#7B54DD

#7B54DD is a mid, vivid violet. Relative luminance 0.158; OKLCH L 56.1% C 0.199 H 291.8°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#7B54DD
RGBrgb(123, 84, 221)
HSLhsl(257, 67%, 60%)
HSVhsv(257, 62%, 87%)
CMYKcmyk(44.3%, 62%, 0%, 13.3%)
CIE-LABlab(46.67, 47.57, -64.68)
CIE-LCHlch(46.67, 80.29, 306.33°)
OKLaboklab(56.06% 0.0739 -0.1848)
OKLCHoklch(56.06% 0.199 291.8)
XYZxyz(24.3862, 15.7713, 70.1519)
Luminance0.1577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B54DD #B6DD54
analogous
#5472DD #7B54DD #BF54DD
triadic
#7B54DD #DD7B54 #54DD7B
tetradic
#7B54DD #DD5472 #B6DD54 #54DDBF
square
#7B54DD #DD5472 #B6DD54 #54DDBF
split-complementary
#7B54DD #DDBF54 #72DD54
monochromatic
#411E98 #5728CB #7B54DD #A287E7 #CABAF1

Accessibility & contrast

On white

5.05
#7B54DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#7B54DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B54DD
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B54DD#FFFFFF#000000##FFFFFF
##7B54DD1.005.054.155.05
#FFFFFF5.051.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E1
Deuteranopia (green-blind)
#006CDA
Tritanopia (blue-blind)
#5E7491
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7b54dd;
/* rgb */ color: rgb(123, 84, 221);
/* oklch */ color: oklch(56.1% 0.199 291.8);
Tailwind
colors: {
  custom: {
    50: '#a886e8',
    500: '#7b54dd',
    950: '#000000',
  },
}
SCSS
$custom: #7b54dd;
$custom-light: #a886e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b54dd",
  "rgb": {
    "r": 123,
    "g": 84,
    "b": 221
  },
  "hsl": {
    "h": 257.08,
    "s": 66.829,
    "l": 59.804
  },
  "oklch": {
    "l": 0.5606,
    "c": 0.19902,
    "h": 291.8
  },
  "luminance": 0.15772
}

Semantic roles & 50–950 ramp

primary
#7B54DD
secondary
#D2E1AC
accent
#EA3EB9
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7B54DD

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

Preview Lab → · Contrast checker → · Palette generator →

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