#7A54DE#7A54DE

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

Color values

HEX#7A54DE
RGBrgb(122, 84, 222)
HSLhsl(257, 68%, 60%)
HSVhsv(257, 62%, 87%)
CMYKcmyk(45%, 62.2%, 0%, 12.9%)
CIE-LABlab(46.65, 47.65, -65.30)
CIE-LCHlch(46.65, 80.84, 306.12°)
OKLaboklab(56.04% 0.0725 -0.1866)
OKLCHoklch(56.04% 0.2 291.2)
XYZxyz(24.3775, 15.7513, 70.8490)
Luminance0.1575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A54DE #B8DE54
analogous
#5473DE #7A54DE #BF54DE
triadic
#7A54DE #DE7A54 #54DE7A
tetradic
#7A54DE #DE5473 #B8DE54 #54DEBF
square
#7A54DE #DE5473 #B8DE54 #54DEBF
split-complementary
#7A54DE #DEBF54 #73DE54
monochromatic
#401E9A #5528CD #7A54DE #A287E8 #CABBF2

Accessibility & contrast

On white

5.06
#7A54DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7A54DE
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A54DE#FFFFFF#000000##FFFFFF
##7A54DE1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a54de;
/* rgb */ color: rgb(122, 84, 222);
/* oklch */ color: oklch(56.0% 0.200 291.2);
Tailwind
colors: {
  custom: {
    50: '#a786e9',
    500: '#7a54de',
    950: '#000000',
  },
}
SCSS
$custom: #7a54de;
$custom-light: #a786e9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a54de",
  "rgb": {
    "r": 122,
    "g": 84,
    "b": 222
  },
  "hsl": {
    "h": 256.522,
    "s": 67.647,
    "l": 60
  },
  "oklch": {
    "l": 0.5604,
    "c": 0.20023,
    "h": 291.2
  },
  "luminance": 0.15752
}

Semantic roles & 50–950 ramp

primary
#7A54DE
secondary
#D3E1AC
accent
#EB3DBB
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7A54DE

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

Preview Lab → · Contrast checker → · Palette generator →

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