#7958EB#7958EB

#7958EB is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.5% C 0.211 H 288.2°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#7958EB
RGBrgb(121, 88, 235)
HSLhsl(253, 79%, 63%)
HSVhsv(253, 63%, 92%)
CMYKcmyk(48.5%, 62.6%, 0%, 7.8%)
CIE-LABlab(48.31, 48.88, -69.95)
CIE-LCHlch(48.31, 85.34, 304.95°)
OKLaboklab(57.52% 0.0661 -0.2003)
OKLCHoklch(57.52% 0.211 288.2)
XYZxyz(26.3659, 17.0414, 80.4812)
Luminance0.1704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958EB #CAEB58
analogous
#5880EB #7958EB #C258EB
triadic
#7958EB #EB7958 #58EB79
tetradic
#7958EB #EB5880 #CAEB58 #58EBC2
square
#7958EB #EB5880 #CAEB58 #58EBC2
split-complementary
#7958EB #EBC258 #80EB58
monochromatic
#3915B3 #4D21E4 #7958EB #A58FF2 #D1C5F8

Accessibility & contrast

On white

4.76
#7958EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#7958EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7958EB
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958EB#FFFFFF#000000##FFFFFF
##7958EB1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F0
Deuteranopia (green-blind)
#006FE8
Tritanopia (blue-blind)
#527B9A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7958eb;
/* rgb */ color: rgb(121, 88, 235);
/* oklch */ color: oklch(57.5% 0.211 288.2);
Tailwind
colors: {
  custom: {
    50: '#a889f2',
    500: '#7958eb',
    950: '#000000',
  },
}
SCSS
$custom: #7958eb;
$custom-light: #a889f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7958eb",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 235
  },
  "hsl": {
    "h": 253.469,
    "s": 78.61,
    "l": 63.333
  },
  "oklch": {
    "l": 0.57522,
    "c": 0.21094,
    "h": 288.2
  },
  "luminance": 0.17043
}

Semantic roles & 50–950 ramp

primary
#7958EB
secondary
#DEEAB5
accent
#DB0BAC
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7958EB

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

Preview Lab → · Contrast checker → · Palette generator →

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