#7958D7#7958D7

#7958D7 is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.1% C 0.186 H 291.2°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#7958D7
RGBrgb(121, 88, 215)
HSLhsl(256, 61%, 59%)
HSVhsv(256, 59%, 84%)
CMYKcmyk(43.7%, 59.1%, 0%, 15.7%)
CIE-LABlab(46.91, 43.27, -60.89)
CIE-LCHlch(46.91, 74.70, 305.40°)
OKLaboklab(56.06% 0.0672 -0.1737)
OKLCHoklch(56.06% 0.186 291.2)
XYZxyz(23.6372, 15.9499, 66.1100)
Luminance0.1595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958D7 #B6D758
analogous
#5876D7 #7958D7 #B958D7
triadic
#7958D7 #D77958 #58D779
tetradic
#7958D7 #D75876 #B6D758 #58D7B9
square
#7958D7 #D75876 #B6D758 #58D7B9
split-complementary
#7958D7 #D7B958 #76D758
monochromatic
#402392 #552FC3 #7958D7 #A189E3 #C8BBEF

Accessibility & contrast

On white

5.01
#7958D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#7958D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7958D7
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958D7#FFFFFF#000000##FFFFFF
##7958D71.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DB
Deuteranopia (green-blind)
#006CD4
Tritanopia (blue-blind)
#5E748F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7958d7;
/* rgb */ color: rgb(121, 88, 215);
/* oklch */ color: oklch(56.1% 0.186 291.2);
Tailwind
colors: {
  custom: {
    50: '#a688e4',
    500: '#7958d7',
    950: '#000000',
  },
}
SCSS
$custom: #7958d7;
$custom-light: #a688e4;
$custom-dark: #000000;
JSON
{
  "hex": "#7958d7",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 215
  },
  "hsl": {
    "h": 255.591,
    "s": 61.353,
    "l": 59.412
  },
  "oklch": {
    "l": 0.56055,
    "c": 0.18626,
    "h": 291.2
  },
  "luminance": 0.15951
}

Semantic roles & 50–950 ramp

primary
#7958D7
secondary
#D1DEAD
accent
#E443BB
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7958D7

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

Preview Lab → · Contrast checker → · Palette generator →

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