#7A54F2#7A54F2

#7A54F2 is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 57.6% C 0.224 H 288.3°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#7A54F2
RGBrgb(122, 84, 242)
HSLhsl(254, 86%, 64%)
HSVhsv(254, 65%, 95%)
CMYKcmyk(49.6%, 65.3%, 0%, 5.1%)
CIE-LABlab(48.12, 53.20, -74.19)
CIE-LCHlch(48.12, 91.29, 305.64°)
OKLaboklab(57.57% 0.0705 -0.2128)
OKLCHoklch(57.57% 0.224 288.3)
XYZxyz(27.2187, 16.8878, 85.8127)
Luminance0.1689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A54F2 #CCF254
analogous
#547DF2 #7A54F2 #C954F2
triadic
#7A54F2 #F27A54 #54F27A
tetradic
#7A54F2 #F2547D #CCF254 #54F2C9
square
#7A54F2 #F2547D #CCF254 #54F2C9
split-complementary
#7A54F2 #F2C954 #7DF254
monochromatic
#380EBD #4E1BEE #7A54F2 #A68DF6 #D2C6FB

Accessibility & contrast

On white

4.80
#7A54F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#7A54F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A54F2
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A54F2#FFFFFF#000000##FFFFFF
##7A54F21.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F7
Deuteranopia (green-blind)
#006EEF
Tritanopia (blue-blind)
#4F7B9C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7a54f2;
/* rgb */ color: rgb(122, 84, 242);
/* oklch */ color: oklch(57.6% 0.224 288.3);
Tailwind
colors: {
  custom: {
    50: '#aa86f7',
    500: '#7a54f2',
    950: '#000000',
  },
}
SCSS
$custom: #7a54f2;
$custom-light: #aa86f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a54f2",
  "rgb": {
    "r": 122,
    "g": 84,
    "b": 242
  },
  "hsl": {
    "h": 254.43,
    "s": 85.87,
    "l": 63.922
  },
  "oklch": {
    "l": 0.57567,
    "c": 0.22415,
    "h": 288.3
  },
  "luminance": 0.16889
}

Semantic roles & 50–950 ramp

primary
#7A54F2
secondary
#DFEDB5
accent
#E203AD
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7A54F2

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

Preview Lab → · Contrast checker → · Palette generator →

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