#7A54CD#7A54CD

#7A54CD is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.8% C 0.179 H 294.2°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#7A54CD
RGBrgb(122, 84, 205)
HSLhsl(259, 55%, 57%)
HSVhsv(259, 59%, 80%)
CMYKcmyk(40.5%, 59%, 0%, 19.6%)
CIE-LABlab(45.48, 43.00, -57.47)
CIE-LCHlch(45.48, 71.77, 306.80°)
OKLaboklab(54.82% 0.0734 -0.1636)
OKLCHoklch(54.82% 0.179 294.2)
XYZxyz(22.2129, 14.8855, 59.4486)
Luminance0.1489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A54CD #A7CD54
analogous
#546BCD #7A54CD #B754CD
triadic
#7A54CD #CD7A54 #54CD7A
tetradic
#7A54CD #CD546B #A7CD54 #54CDB7
square
#7A54CD #CD546B #A7CD54 #54CDB7
split-complementary
#7A54CD #CDB754 #6BCD54
monochromatic
#422681 #5B34B0 #7A54CD #9F83DB #C4B3E9

Accessibility & contrast

On white

5.28
#7A54CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#7A54CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A54CD
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A54CD#FFFFFF#000000##FFFFFF
##7A54CD1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD1
Deuteranopia (green-blind)
#176ACA
Tritanopia (blue-blind)
#646E88
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7a54cd;
/* rgb */ color: rgb(122, 84, 205);
/* oklch */ color: oklch(54.8% 0.179 294.2);
Tailwind
colors: {
  custom: {
    50: '#a686dd',
    500: '#7a54cd',
    950: '#000000',
  },
}
SCSS
$custom: #7a54cd;
$custom-light: #a686dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a54cd",
  "rgb": {
    "r": 122,
    "g": 84,
    "b": 205
  },
  "hsl": {
    "h": 258.843,
    "s": 54.751,
    "l": 56.667
  },
  "oklch": {
    "l": 0.54816,
    "c": 0.17933,
    "h": 294.2
  },
  "luminance": 0.14886
}

Semantic roles & 50–950 ramp

primary
#7A54CD
secondary
#C8D7A6
accent
#DE4AAF
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7A54CD

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

Preview Lab → · Contrast checker → · Palette generator →

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