#7958CC#7958CC

#7958CC is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.3% C 0.172 H 293.0°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#7958CC
RGBrgb(121, 88, 204)
HSLhsl(257, 53%, 57%)
HSVhsv(257, 57%, 80%)
CMYKcmyk(40.7%, 56.9%, 0%, 20%)
CIE-LABlab(46.18, 40.23, -55.76)
CIE-LCHlch(46.18, 68.76, 305.80°)
OKLaboklab(55.29% 0.0674 -0.1586)
OKLCHoklch(55.29% 0.172 293)
XYZxyz(22.2710, 15.4034, 58.9148)
Luminance0.1540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958CC #ABCC58
analogous
#5871CC #7958CC #B358CC
triadic
#7958CC #CC7958 #58CC79
tetradic
#7958CC #CC5871 #ABCC58 #58CCB3
square
#7958CC #CC5871 #ABCC58 #58CCB3
split-complementary
#7958CC #CCB358 #71CC58
monochromatic
#412882 #5936B1 #7958CC #9F87DA #C4B6E9

Accessibility & contrast

On white

5.15
#7958CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#7958CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7958CC
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958CC#FFFFFF#000000##FFFFFF
##7958CC1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#166FD0
Deuteranopia (green-blind)
#236BC9
Tritanopia (blue-blind)
#637189
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7958cc;
/* rgb */ color: rgb(121, 88, 204);
/* oklch */ color: oklch(55.3% 0.172 293.0);
Tailwind
colors: {
  custom: {
    50: '#a588dc',
    500: '#7958cc',
    950: '#000000',
  },
}
SCSS
$custom: #7958cc;
$custom-light: #a588dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7958cc",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 204
  },
  "hsl": {
    "h": 257.069,
    "s": 53.211,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55289,
    "c": 0.17235,
    "h": 293
  },
  "luminance": 0.15404
}

Semantic roles & 50–950 ramp

primary
#7958CC
secondary
#CAD7A8
accent
#DD4BB3
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7958CC

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

Preview Lab → · Contrast checker → · Palette generator →

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