#7958CD#7958CD

#7958CD is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.4% C 0.174 H 292.8°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#7958CD
RGBrgb(121, 88, 205)
HSLhsl(257, 54%, 57%)
HSVhsv(257, 57%, 80%)
CMYKcmyk(41%, 57.1%, 0%, 19.6%)
CIE-LABlab(46.25, 40.50, -56.23)
CIE-LCHlch(46.25, 69.30, 305.76°)
OKLaboklab(55.36% 0.0674 -0.16)
OKLCHoklch(55.36% 0.174 292.8)
XYZxyz(22.3914, 15.4516, 59.5485)
Luminance0.1545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958CD #ACCD58
analogous
#5872CD #7958CD #B358CD
triadic
#7958CD #CD7958 #58CD79
tetradic
#7958CD #CD5872 #ACCD58 #58CDB3
square
#7958CD #CD5872 #ACCD58 #58CDB3
split-complementary
#7958CD #CDB358 #72CD58
monochromatic
#412783 #5935B2 #7958CD #9F87DB #C5B6E9

Accessibility & contrast

On white

5.13
#7958CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#7958CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7958CD
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958CD#FFFFFF#000000##FFFFFF
##7958CD1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#146FD1
Deuteranopia (green-blind)
#216BCA
Tritanopia (blue-blind)
#62718A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7958cd;
/* rgb */ color: rgb(121, 88, 205);
/* oklch */ color: oklch(55.4% 0.174 292.8);
Tailwind
colors: {
  custom: {
    50: '#a588dd',
    500: '#7958cd',
    950: '#000000',
  },
}
SCSS
$custom: #7958cd;
$custom-light: #a588dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7958cd",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 205
  },
  "hsl": {
    "h": 256.923,
    "s": 53.917,
    "l": 57.451
  },
  "oklch": {
    "l": 0.55358,
    "c": 0.17362,
    "h": 292.8
  },
  "luminance": 0.15452
}

Semantic roles & 50–950 ramp

primary
#7958CD
secondary
#CBD8A9
accent
#DD4BB4
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7958CD

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

Preview Lab → · Contrast checker → · Palette generator →

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