#7958BC#7958BC

#7958BC is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.2% C 0.152 H 296.2°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7958BC
RGBrgb(121, 88, 188)
HSLhsl(260, 43%, 54%)
HSVhsv(260, 53%, 74%)
CMYKcmyk(35.6%, 53.2%, 0%, 26.3%)
CIE-LABlab(45.19, 35.88, -48.11)
CIE-LCHlch(45.19, 60.01, 306.71°)
OKLaboklab(54.23% 0.067 -0.1361)
OKLCHoklch(54.23% 0.152 296.2)
XYZxyz(20.4497, 14.6749, 49.3223)
Luminance0.1467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958BC #9BBC58
analogous
#5869BC #7958BC #AB58BC
triadic
#7958BC #BC7958 #58BC79
tetradic
#7958BC #BC5869 #9BBC58 #58BCAB
square
#7958BC #BC5869 #9BBC58 #58BCAB
split-complementary
#7958BC #BCAB58 #69BC58
monochromatic
#422C6E #5C3E99 #7958BC #9C84CE #BFAFDF

Accessibility & contrast

On white

5.34
#7958BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7958BC
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958BC#FFFFFF#000000##FFFFFF
##7958BC1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F6CBF
Deuteranopia (green-blind)
#386ABA
Tritanopia (blue-blind)
#696C81
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7958bc;
/* rgb */ color: rgb(121, 88, 188);
/* oklch */ color: oklch(54.2% 0.152 296.2);
Tailwind
colors: {
  custom: {
    50: '#a388d1',
    500: '#7958bc',
    950: '#000000',
  },
}
SCSS
$custom: #7958bc;
$custom-light: #a388d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7958bc",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 188
  },
  "hsl": {
    "h": 259.8,
    "s": 42.735,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54234,
    "c": 0.15171,
    "h": 296.2
  },
  "luminance": 0.14675
}

Semantic roles & 50–950 ramp

primary
#7958BC
secondary
#BFCDA3
accent
#D355A9
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0B14
muted
#7F7C82

Preview Lab

Preview with #7958BC

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

Preview Lab → · Contrast checker → · Palette generator →

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