#7954CB#7954CB

#7954CB is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.6% C 0.177 H 294.1°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#7954CB
RGBrgb(121, 84, 203)
HSLhsl(259, 53%, 56%)
HSVhsv(259, 59%, 80%)
CMYKcmyk(40.4%, 58.6%, 0%, 20.4%)
CIE-LABlab(45.24, 42.23, -56.70)
CIE-LCHlch(45.24, 70.70, 306.68°)
OKLaboklab(54.58% 0.0722 -0.1614)
OKLCHoklch(54.58% 0.177 294.1)
XYZxyz(21.8321, 14.7169, 58.1787)
Luminance0.1472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7954CB #A6CB54
analogous
#546BCB #7954CB #B454CB
triadic
#7954CB #CB7954 #54CB79
tetradic
#7954CB #CB546B #A6CB54 #54CBB4
square
#7954CB #CB546B #A6CB54 #54CBB4
split-complementary
#7954CB #CBB454 #6BCB54
monochromatic
#42267E #5A35AD #7954CB #9E83D9 #C3B2E8

Accessibility & contrast

On white

5.33
#7954CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#7954CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7954CB
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7954CB#FFFFFF#000000##FFFFFF
##7954CB1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CCF
Deuteranopia (green-blind)
#1A69C8
Tritanopia (blue-blind)
#646E87
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7954cb;
/* rgb */ color: rgb(121, 84, 203);
/* oklch */ color: oklch(54.6% 0.177 294.1);
Tailwind
colors: {
  custom: {
    50: '#a585dc',
    500: '#7954cb',
    950: '#000000',
  },
}
SCSS
$custom: #7954cb;
$custom-light: #a585dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7954cb",
  "rgb": {
    "r": 121,
    "g": 84,
    "b": 203
  },
  "hsl": {
    "h": 258.655,
    "s": 53.363,
    "l": 56.275
  },
  "oklch": {
    "l": 0.5458,
    "c": 0.17677,
    "h": 294.1
  },
  "luminance": 0.14717
}

Semantic roles & 50–950 ramp

primary
#7954CB
secondary
#C7D6A5
accent
#DD4BAF
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7954CB

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

Preview Lab → · Contrast checker → · Palette generator →

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