#7A54CB#7A54CB

#7A54CB is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.7% C 0.177 H 294.6°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#7A54CB
RGBrgb(122, 84, 203)
HSLhsl(259, 53%, 56%)
HSVhsv(259, 59%, 80%)
CMYKcmyk(39.9%, 58.6%, 0%, 20.4%)
CIE-LABlab(45.34, 42.45, -56.53)
CIE-LCHlch(45.34, 70.70, 306.91°)
OKLaboklab(54.68% 0.0735 -0.1608)
OKLCHoklch(54.68% 0.177 294.6)
XYZxyz(21.9730, 14.7895, 58.1853)
Luminance0.1479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A54CB #A5CB54
analogous
#546ACB #7A54CB #B654CB
triadic
#7A54CB #CB7A54 #54CB7A
tetradic
#7A54CB #CB546A #A5CB54 #54CBB6
square
#7A54CB #CB546A #A5CB54 #54CBB6
split-complementary
#7A54CB #CBB654 #6ACB54
monochromatic
#42267E #5B35AD #7A54CB #9F83D9 #C3B2E8

Accessibility & contrast

On white

5.31
#7A54CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#7A54CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A54CB
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A54CB#FFFFFF#000000##FFFFFF
##7A54CB1.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#026CCF
Deuteranopia (green-blind)
#1C69C8
Tritanopia (blue-blind)
#656E87
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7a54cb;
/* rgb */ color: rgb(122, 84, 203);
/* oklch */ color: oklch(54.7% 0.177 294.6);
Tailwind
colors: {
  custom: {
    50: '#a586dc',
    500: '#7a54cb',
    950: '#000000',
  },
}
SCSS
$custom: #7a54cb;
$custom-light: #a586dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a54cb",
  "rgb": {
    "r": 122,
    "g": 84,
    "b": 203
  },
  "hsl": {
    "h": 259.16,
    "s": 53.363,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54677,
    "c": 0.17684,
    "h": 294.6
  },
  "luminance": 0.1479
}

Semantic roles & 50–950 ramp

primary
#7A54CB
secondary
#C6D6A5
accent
#DD4BAE
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7A54CB

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

Preview Lab → · Contrast checker → · Palette generator →

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