#7954CD#7954CD

#7954CD is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.7% C 0.179 H 293.7°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#7954CD
RGBrgb(121, 84, 205)
HSLhsl(258, 55%, 57%)
HSVhsv(258, 59%, 80%)
CMYKcmyk(41%, 59%, 0%, 19.6%)
CIE-LABlab(45.38, 42.77, -57.64)
CIE-LCHlch(45.38, 71.78, 306.58°)
OKLaboklab(54.72% 0.0721 -0.1641)
OKLCHoklch(54.72% 0.179 293.7)
XYZxyz(22.0720, 14.8128, 59.4420)
Luminance0.1481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7954CD #A8CD54
analogous
#546CCD #7954CD #B654CD
triadic
#7954CD #CD7954 #54CD79
tetradic
#7954CD #CD546C #A8CD54 #54CDB6
square
#7954CD #CD546C #A8CD54 #54CDB6
split-complementary
#7954CD #CDB654 #6CCD54
monochromatic
#422681 #5A34B0 #7954CD #9E83DB #C3B3E9

Accessibility & contrast

On white

5.30
#7954CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#7954CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7954CD
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7954CD#FFFFFF#000000##FFFFFF
##7954CD1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD1
Deuteranopia (green-blind)
#1569CA
Tritanopia (blue-blind)
#636F88
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7954cd;
/* rgb */ color: rgb(121, 84, 205);
/* oklch */ color: oklch(54.7% 0.179 293.7);
Tailwind
colors: {
  custom: {
    50: '#a585dd',
    500: '#7954cd',
    950: '#000000',
  },
}
SCSS
$custom: #7954cd;
$custom-light: #a585dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7954cd",
  "rgb": {
    "r": 121,
    "g": 84,
    "b": 205
  },
  "hsl": {
    "h": 258.347,
    "s": 54.751,
    "l": 56.667
  },
  "oklch": {
    "l": 0.54719,
    "c": 0.17927,
    "h": 293.7
  },
  "luminance": 0.14813
}

Semantic roles & 50–950 ramp

primary
#7954CD
secondary
#C8D7A6
accent
#DE4AB1
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7954CD

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

Preview Lab → · Contrast checker → · Palette generator →

#7954CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva