#7958DC#7958DC

#7958DC is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.4% C 0.193 H 290.4°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#7958DC
RGBrgb(121, 88, 220)
HSLhsl(255, 65%, 60%)
HSVhsv(255, 60%, 86%)
CMYKcmyk(45%, 60%, 0%, 13.7%)
CIE-LABlab(47.25, 44.67, -63.19)
CIE-LCHlch(47.25, 77.38, 305.26°)
OKLaboklab(56.41% 0.067 -0.1804)
OKLCHoklch(56.41% 0.193 290.4)
XYZxyz(24.2895, 16.2108, 69.5455)
Luminance0.1621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958DC #BBDC58
analogous
#5879DC #7958DC #BB58DC
triadic
#7958DC #DC7958 #58DC79
tetradic
#7958DC #DC5879 #BBDC58 #58DCBB
square
#7958DC #DC5879 #BBDC58 #58DCBB
split-complementary
#7958DC #DCBB58 #79DC58
monochromatic
#3E2099 #532BCC #7958DC #A28BE7 #CABDF1

Accessibility & contrast

On white

4.95
#7958DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#7958DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7958DC
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958DC#FFFFFF#000000##FFFFFF
##7958DC1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E0
Deuteranopia (green-blind)
#006DD9
Tritanopia (blue-blind)
#5B7692
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7958dc;
/* rgb */ color: rgb(121, 88, 220);
/* oklch */ color: oklch(56.4% 0.193 290.4);
Tailwind
colors: {
  custom: {
    50: '#a688e8',
    500: '#7958dc',
    950: '#000000',
  },
}
SCSS
$custom: #7958dc;
$custom-light: #a688e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7958dc",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 220
  },
  "hsl": {
    "h": 255,
    "s": 65.347,
    "l": 60.392
  },
  "oklch": {
    "l": 0.56413,
    "c": 0.1925,
    "h": 290.4
  },
  "luminance": 0.16212
}

Semantic roles & 50–950 ramp

primary
#7958DC
secondary
#D5E1AF
accent
#CD18A0
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7958DC

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

Preview Lab → · Contrast checker → · Palette generator →

#7958DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva