#7958BE#7958BE

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

Color values

HEX#7958BE
RGBrgb(121, 88, 190)
HSLhsl(259, 44%, 55%)
HSVhsv(259, 54%, 75%)
CMYKcmyk(36.3%, 53.7%, 0%, 25.5%)
CIE-LABlab(45.31, 36.41, -49.08)
CIE-LCHlch(45.31, 61.11, 306.57°)
OKLaboklab(54.36% 0.0671 -0.139)
OKLCHoklch(54.36% 0.154 295.8)
XYZxyz(20.6668, 14.7617, 50.4657)
Luminance0.1476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958BE #9DBE58
analogous
#586ABE #7958BE #AC58BE
triadic
#7958BE #BE7958 #58BE79
tetradic
#7958BE #BE586A #9DBE58 #58BEAC
square
#7958BE #BE586A #9DBE58 #58BEAC
split-complementary
#7958BE #BEAC58 #6ABE58
monochromatic
#422C70 #5C3D9C #7958BE #9C84CF #C0B0E0

Accessibility & contrast

On white

5.31
#7958BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#7958BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7958BE
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958BE#FFFFFF#000000##FFFFFF
##7958BE1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D6CC1
Deuteranopia (green-blind)
#366ABC
Tritanopia (blue-blind)
#696D82
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7958be;
/* rgb */ color: rgb(121, 88, 190);
/* oklch */ color: oklch(54.4% 0.154 295.8);
Tailwind
colors: {
  custom: {
    50: '#a388d2',
    500: '#7958be',
    950: '#000000',
  },
}
SCSS
$custom: #7958be;
$custom-light: #a388d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7958be",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 190
  },
  "hsl": {
    "h": 259.412,
    "s": 43.966,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54362,
    "c": 0.15432,
    "h": 295.8
  },
  "luminance": 0.14762
}

Semantic roles & 50–950 ramp

primary
#7958BE
secondary
#C1CEA3
accent
#D454AA
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#0F0B14
muted
#7F7C83

Preview Lab

Preview with #7958BE

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

Preview Lab → · Contrast checker → · Palette generator →

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