#7958D6#7958D6

#7958D6 is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.0% C 0.185 H 291.3°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#7958D6
RGBrgb(121, 88, 214)
HSLhsl(256, 61%, 59%)
HSVhsv(256, 59%, 84%)
CMYKcmyk(43.5%, 58.9%, 0%, 16.1%)
CIE-LABlab(46.84, 42.99, -60.43)
CIE-LCHlch(46.84, 74.16, 305.43°)
OKLaboklab(55.98% 0.0673 -0.1723)
OKLCHoklch(55.98% 0.185 291.3)
XYZxyz(23.5091, 15.8987, 65.4354)
Luminance0.1590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958D6 #B5D658
analogous
#5876D6 #7958D6 #B858D6
triadic
#7958D6 #D67958 #58D679
tetradic
#7958D6 #D65876 #B5D658 #58D6B8
square
#7958D6 #D65876 #B5D658 #58D6B8
split-complementary
#7958D6 #D6B858 #76D658
monochromatic
#402390 #562FC1 #7958D6 #A089E2 #C8BAEE

Accessibility & contrast

On white

5.02
#7958D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#7958D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7958D6
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958D6#FFFFFF#000000##FFFFFF
##7958D61.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DA
Deuteranopia (green-blind)
#036CD3
Tritanopia (blue-blind)
#5E748F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7958d6;
/* rgb */ color: rgb(121, 88, 214);
/* oklch */ color: oklch(56.0% 0.185 291.3);
Tailwind
colors: {
  custom: {
    50: '#a688e3',
    500: '#7958d6',
    950: '#000000',
  },
}
SCSS
$custom: #7958d6;
$custom-light: #a688e3;
$custom-dark: #000000;
JSON
{
  "hex": "#7958d6",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 214
  },
  "hsl": {
    "h": 255.714,
    "s": 60.577,
    "l": 59.216
  },
  "oklch": {
    "l": 0.55984,
    "c": 0.185,
    "h": 291.3
  },
  "luminance": 0.15899
}

Semantic roles & 50–950 ramp

primary
#7958D6
secondary
#D1DEAC
accent
#E444BA
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7958D6

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

Preview Lab → · Contrast checker → · Palette generator →

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