#7954D4#7954D4

#7954D4 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.2% C 0.188 H 292.5°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#7954D4
RGBrgb(121, 84, 212)
HSLhsl(257, 60%, 58%)
HSVhsv(257, 60%, 83%)
CMYKcmyk(42.9%, 60.4%, 0%, 16.9%)
CIE-LABlab(45.85, 44.69, -60.89)
CIE-LCHlch(45.85, 75.53, 306.28°)
OKLaboklab(55.22% 0.0718 -0.1737)
OKLCHoklch(55.22% 0.188 292.5)
XYZxyz(22.9359, 15.1584, 63.9920)
Luminance0.1516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7954D4 #AFD454
analogous
#546FD4 #7954D4 #B954D4
triadic
#7954D4 #D47954 #54D479
tetradic
#7954D4 #D4546F #AFD454 #54D4B9
square
#7954D4 #D4546F #AFD454 #54D4B9
split-complementary
#7954D4 #D4B954 #6FD454
monochromatic
#41238B #582FBC #7954D4 #9F85E0 #C6B6ED

Accessibility & contrast

On white

5.21
#7954D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#7954D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7954D4
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7954D4#FFFFFF#000000##FFFFFF
##7954D41.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED8
Deuteranopia (green-blind)
#006AD1
Tritanopia (blue-blind)
#5F718C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7954d4;
/* rgb */ color: rgb(121, 84, 212);
/* oklch */ color: oklch(55.2% 0.188 292.5);
Tailwind
colors: {
  custom: {
    50: '#a686e2',
    500: '#7954d4',
    950: '#000000',
  },
}
SCSS
$custom: #7954d4;
$custom-light: #a686e2;
$custom-dark: #000000;
JSON
{
  "hex": "#7954d4",
  "rgb": {
    "r": 121,
    "g": 84,
    "b": 212
  },
  "hsl": {
    "h": 257.344,
    "s": 59.813,
    "l": 58.039
  },
  "oklch": {
    "l": 0.55216,
    "c": 0.18796,
    "h": 292.5
  },
  "luminance": 0.15159
}

Semantic roles & 50–950 ramp

primary
#7954D4
secondary
#CDDBA8
accent
#E345B5
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7954D4

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

Preview Lab → · Contrast checker → · Palette generator →

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