#7B54DE#7B54DE

#7B54DE is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.1% C 0.200 H 291.6°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7B54DE
RGBrgb(123, 84, 222)
HSLhsl(257, 68%, 60%)
HSVhsv(257, 62%, 87%)
CMYKcmyk(44.6%, 62.2%, 0%, 12.9%)
CIE-LABlab(46.74, 47.85, -65.14)
CIE-LCHlch(46.74, 80.82, 306.30°)
OKLaboklab(56.13% 0.0739 -0.1861)
OKLCHoklch(56.13% 0.2 291.6)
XYZxyz(24.5199, 15.8247, 70.8556)
Luminance0.1583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B54DE #B7DE54
analogous
#5472DE #7B54DE #C054DE
triadic
#7B54DE #DE7B54 #54DE7B
tetradic
#7B54DE #DE5472 #B7DE54 #54DEC0
square
#7B54DE #DE5472 #B7DE54 #54DEC0
split-complementary
#7B54DE #DEC054 #72DE54
monochromatic
#411E9A #5628CD #7B54DE #A387E8 #CABBF2

Accessibility & contrast

On white

5.04
#7B54DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#7B54DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B54DE
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B54DE#FFFFFF#000000##FFFFFF
##7B54DE1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b54de;
/* rgb */ color: rgb(123, 84, 222);
/* oklch */ color: oklch(56.1% 0.200 291.6);
Tailwind
colors: {
  custom: {
    50: '#a886e9',
    500: '#7b54de',
    950: '#000000',
  },
}
SCSS
$custom: #7b54de;
$custom-light: #a886e9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b54de",
  "rgb": {
    "r": 123,
    "g": 84,
    "b": 222
  },
  "hsl": {
    "h": 256.957,
    "s": 67.647,
    "l": 60
  },
  "oklch": {
    "l": 0.56134,
    "c": 0.20024,
    "h": 291.6
  },
  "luminance": 0.15826
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B54DE

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

Preview Lab → · Contrast checker → · Palette generator →

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