#7958D5#7958D5

#7958D5 is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.9% C 0.184 H 291.5°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7958D5
RGBrgb(121, 88, 213)
HSLhsl(256, 60%, 59%)
HSVhsv(256, 59%, 84%)
CMYKcmyk(43.2%, 58.7%, 0%, 16.5%)
CIE-LABlab(46.77, 42.71, -59.97)
CIE-LCHlch(46.77, 73.62, 305.46°)
OKLaboklab(55.91% 0.0673 -0.171)
OKLCHoklch(55.91% 0.184 291.5)
XYZxyz(23.3818, 15.8478, 64.7649)
Luminance0.1585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958D5 #B4D558
analogous
#5876D5 #7958D5 #B858D5
triadic
#7958D5 #D57958 #58D579
tetradic
#7958D5 #D55876 #B4D558 #58D5B8
square
#7958D5 #D55876 #B4D558 #58D5B8
split-complementary
#7958D5 #D5B858 #76D558
monochromatic
#40248F #5630C0 #7958D5 #A089E1 #C7BAEE

Accessibility & contrast

On white

5.04
#7958D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#7958D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7958D5
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958D5#FFFFFF#000000##FFFFFF
##7958D51.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071D9
Deuteranopia (green-blind)
#086CD2
Tritanopia (blue-blind)
#5F748E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7958d5;
/* rgb */ color: rgb(121, 88, 213);
/* oklch */ color: oklch(55.9% 0.184 291.5);
Tailwind
colors: {
  custom: {
    50: '#a688e3',
    500: '#7958d5',
    950: '#000000',
  },
}
SCSS
$custom: #7958d5;
$custom-light: #a688e3;
$custom-dark: #000000;
JSON
{
  "hex": "#7958d5",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 213
  },
  "hsl": {
    "h": 255.84,
    "s": 59.809,
    "l": 59.02
  },
  "oklch": {
    "l": 0.55913,
    "c": 0.18375,
    "h": 291.5
  },
  "luminance": 0.15848
}

Semantic roles & 50–950 ramp

primary
#7958D5
secondary
#D0DDAC
accent
#E345B9
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100B15
muted
#7F7C84

Preview Lab

Preview with #7958D5

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

Preview Lab → · Contrast checker → · Palette generator →

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