#7958BB#7958BB

#7958BB is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.2% C 0.150 H 296.4°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#7958BB
RGBrgb(121, 88, 187)
HSLhsl(260, 42%, 54%)
HSVhsv(260, 53%, 73%)
CMYKcmyk(35.3%, 52.9%, 0%, 26.7%)
CIE-LABlab(45.13, 35.61, -47.62)
CIE-LCHlch(45.13, 59.46, 306.79°)
OKLaboklab(54.17% 0.0669 -0.1347)
OKLCHoklch(54.17% 0.15 296.4)
XYZxyz(20.3423, 14.6319, 48.7566)
Luminance0.1463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958BB #9ABB58
analogous
#5869BB #7958BB #AB58BB
triadic
#7958BB #BB7958 #58BB79
tetradic
#7958BB #BB5869 #9ABB58 #58BBAB
square
#7958BB #BB5869 #9ABB58 #58BBAB
split-complementary
#7958BB #BBAB58 #69BB58
monochromatic
#422C6C #5C3E98 #7958BB #9C83CD #BFAFDE

Accessibility & contrast

On white

5.35
#7958BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#7958BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7958BB
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958BB#FFFFFF#000000##FFFFFF
##7958BB1.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#306BBE
Deuteranopia (green-blind)
#396AB9
Tritanopia (blue-blind)
#6A6C81
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7958bb;
/* rgb */ color: rgb(121, 88, 187);
/* oklch */ color: oklch(54.2% 0.150 296.4);
Tailwind
colors: {
  custom: {
    50: '#a388d0',
    500: '#7958bb',
    950: '#000000',
  },
}
SCSS
$custom: #7958bb;
$custom-light: #a388d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7958bb",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 187
  },
  "hsl": {
    "h": 260,
    "s": 42.128,
    "l": 53.922
  },
  "oklch": {
    "l": 0.5417,
    "c": 0.15042,
    "h": 296.4
  },
  "luminance": 0.14632
}

Semantic roles & 50–950 ramp

primary
#7958BB
secondary
#BECDA2
accent
#D256A9
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0B14
muted
#7F7C82

Preview Lab

Preview with #7958BB

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

Preview Lab → · Contrast checker → · Palette generator →

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