#7958BF#7958BF

#7958BF is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.4% C 0.156 H 295.6°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#7958BF
RGBrgb(121, 88, 191)
HSLhsl(259, 45%, 55%)
HSVhsv(259, 54%, 75%)
CMYKcmyk(36.6%, 53.9%, 0%, 25.1%)
CIE-LABlab(45.37, 36.68, -49.56)
CIE-LCHlch(45.37, 61.66, 306.51°)
OKLaboklab(54.43% 0.0671 -0.1404)
OKLCHoklch(54.43% 0.156 295.6)
XYZxyz(20.7764, 14.8056, 51.0433)
Luminance0.1481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958BF #9EBF58
analogous
#586BBF #7958BF #AC58BF
triadic
#7958BF #BF7958 #58BF79
tetradic
#7958BF #BF586B #9EBF58 #58BFAC
square
#7958BF #BF586B #9EBF58 #58BFAC
split-complementary
#7958BF #BFAC58 #6BBF58
monochromatic
#422B71 #5B3C9D #7958BF #9D84D0 #C0B0E1

Accessibility & contrast

On white

5.30
#7958BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#7958BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7958BF
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958BF#FFFFFF#000000##FFFFFF
##7958BF1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C6CC3
Deuteranopia (green-blind)
#356ABD
Tritanopia (blue-blind)
#686D83
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7958bf;
/* rgb */ color: rgb(121, 88, 191);
/* oklch */ color: oklch(54.4% 0.156 295.6);
Tailwind
colors: {
  custom: {
    50: '#a388d3',
    500: '#7958bf',
    950: '#000000',
  },
}
SCSS
$custom: #7958bf;
$custom-light: #a388d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7958bf",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 191
  },
  "hsl": {
    "h": 259.223,
    "s": 44.589,
    "l": 54.706
  },
  "oklch": {
    "l": 0.54426,
    "c": 0.15562,
    "h": 295.6
  },
  "luminance": 0.14806
}

Semantic roles & 50–950 ramp

primary
#7958BF
secondary
#C1CFA4
accent
#D454AB
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#0F0B14
muted
#7F7C83

Preview Lab

Preview with #7958BF

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

Preview Lab → · Contrast checker → · Palette generator →

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