#7958D8#7958D8

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

Color values

HEX#7958D8
RGBrgb(121, 88, 216)
HSLhsl(255, 62%, 60%)
HSVhsv(255, 59%, 85%)
CMYKcmyk(44%, 59.3%, 0%, 15.3%)
CIE-LABlab(46.98, 43.55, -61.35)
CIE-LCHlch(46.98, 75.24, 305.37°)
OKLaboklab(56.13% 0.0672 -0.175)
OKLCHoklch(56.13% 0.188 291)
XYZxyz(23.7661, 16.0015, 66.7888)
Luminance0.1600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958D8 #B7D858
analogous
#5877D8 #7958D8 #B958D8
triadic
#7958D8 #D87958 #58D879
tetradic
#7958D8 #D85877 #B7D858 #58D8B9
square
#7958D8 #D85877 #B7D858 #58D8B9
split-complementary
#7958D8 #D8B958 #77D858
monochromatic
#3F2293 #552EC5 #7958D8 #A18AE4 #C9BBEF

Accessibility & contrast

On white

5.00
#7958D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#7958D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7958D8
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958D8#FFFFFF#000000##FFFFFF
##7958D81.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DC
Deuteranopia (green-blind)
#006DD5
Tritanopia (blue-blind)
#5D7590
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7958d8;
/* rgb */ color: rgb(121, 88, 216);
/* oklch */ color: oklch(56.1% 0.188 291.0);
Tailwind
colors: {
  custom: {
    50: '#a688e5',
    500: '#7958d8',
    950: '#000000',
  },
}
SCSS
$custom: #7958d8;
$custom-light: #a688e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7958d8",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 216
  },
  "hsl": {
    "h": 255.469,
    "s": 62.136,
    "l": 59.608
  },
  "oklch": {
    "l": 0.56126,
    "c": 0.18751,
    "h": 291
  },
  "luminance": 0.16002
}

Semantic roles & 50–950 ramp

primary
#7958D8
secondary
#D2DFAD
accent
#E543BB
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7958D8

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

Preview Lab → · Contrast checker → · Palette generator →

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