#7A54E7#7A54E7

#7A54E7 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.7% C 0.211 H 289.9°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#7A54E7
RGBrgb(122, 84, 231)
HSLhsl(256, 75%, 62%)
HSVhsv(256, 64%, 91%)
CMYKcmyk(47.2%, 63.6%, 0%, 9.4%)
CIE-LABlab(47.30, 50.14, -69.34)
CIE-LCHlch(47.30, 85.57, 305.87°)
OKLaboklab(56.72% 0.0717 -0.1985)
OKLCHoklch(56.72% 0.211 289.9)
XYZxyz(25.6161, 16.2467, 77.3720)
Luminance0.1625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A54E7 #C1E754
analogous
#5478E7 #7A54E7 #C454E7
triadic
#7A54E7 #E77A54 #54E77A
tetradic
#7A54E7 #E75478 #C1E754 #54E7C4
square
#7A54E7 #E75478 #C1E754 #54E7C4
split-complementary
#7A54E7 #E7C454 #78E754
monochromatic
#3D18A9 #511FDF #7A54E7 #A48AEF #CDBFF6

Accessibility & contrast

On white

4.94
#7A54E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#7A54E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A54E7
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A54E7#FFFFFF#000000##FFFFFF
##7A54E71.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073EC
Deuteranopia (green-blind)
#006DE4
Tritanopia (blue-blind)
#577796
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7a54e7;
/* rgb */ color: rgb(122, 84, 231);
/* oklch */ color: oklch(56.7% 0.211 289.9);
Tailwind
colors: {
  custom: {
    50: '#a886f0',
    500: '#7a54e7',
    950: '#000000',
  },
}
SCSS
$custom: #7a54e7;
$custom-light: #a886f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a54e7",
  "rgb": {
    "r": 122,
    "g": 84,
    "b": 231
  },
  "hsl": {
    "h": 255.51,
    "s": 75.385,
    "l": 61.765
  },
  "oklch": {
    "l": 0.56716,
    "c": 0.21107,
    "h": 289.9
  },
  "luminance": 0.16248
}

Semantic roles & 50–950 ramp

primary
#7A54E7
secondary
#D9E7B0
accent
#D80EA3
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7A54E7

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

Preview Lab → · Contrast checker → · Palette generator →

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