#7958CF#7958CF

#7958CF is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.5% C 0.176 H 292.5°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#7958CF
RGBrgb(121, 88, 207)
HSLhsl(257, 55%, 58%)
HSVhsv(257, 57%, 81%)
CMYKcmyk(41.5%, 57.5%, 0%, 18.8%)
CIE-LABlab(46.38, 41.05, -57.17)
CIE-LCHlch(46.38, 70.38, 305.68°)
OKLaboklab(55.5% 0.0674 -0.1628)
OKLCHoklch(55.5% 0.176 292.5)
XYZxyz(22.6343, 15.5488, 60.8280)
Luminance0.1555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958CF #AECF58
analogous
#5872CF #7958CF #B558CF
triadic
#7958CF #CF7958 #58CF79
tetradic
#7958CF #CF5872 #AECF58 #58CFB5
square
#7958CF #CF5872 #AECF58 #58CFB5
split-complementary
#7958CF #CFB558 #72CF58
monochromatic
#412786 #5834B6 #7958CF #9F88DD #C5B7EA

Accessibility & contrast

On white

5.11
#7958CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#7958CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7958CF
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958CF#FFFFFF#000000##FFFFFF
##7958CF1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D70D3
Deuteranopia (green-blind)
#1D6CCC
Tritanopia (blue-blind)
#62728B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7958cf;
/* rgb */ color: rgb(121, 88, 207);
/* oklch */ color: oklch(55.5% 0.176 292.5);
Tailwind
colors: {
  custom: {
    50: '#a588de',
    500: '#7958cf',
    950: '#000000',
  },
}
SCSS
$custom: #7958cf;
$custom-light: #a588de;
$custom-dark: #000000;
JSON
{
  "hex": "#7958cf",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 207
  },
  "hsl": {
    "h": 256.639,
    "s": 55.349,
    "l": 57.843
  },
  "oklch": {
    "l": 0.55495,
    "c": 0.17616,
    "h": 292.5
  },
  "luminance": 0.15549
}

Semantic roles & 50–950 ramp

primary
#7958CF
secondary
#CCD9AA
accent
#DF49B5
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7958CF

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

Preview Lab → · Contrast checker → · Palette generator →

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