#7958EF#7958EF

#7958EF is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 57.8% C 0.216 H 287.7°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#7958EF
RGBrgb(121, 88, 239)
HSLhsl(253, 83%, 64%)
HSVhsv(253, 63%, 94%)
CMYKcmyk(49.4%, 63.2%, 0%, 6.3%)
CIE-LABlab(48.60, 50.01, -71.72)
CIE-LCHlch(48.60, 87.44, 304.89°)
OKLaboklab(57.83% 0.0657 -0.2055)
OKLCHoklch(57.83% 0.216 287.7)
XYZxyz(26.9503, 17.2752, 83.5590)
Luminance0.1728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958EF #CEEF58
analogous
#5883EF #7958EF #C558EF
triadic
#7958EF #EF7958 #58EF79
tetradic
#7958EF #EF5883 #CEEF58 #58EFC5
square
#7958EF #EF5883 #CEEF58 #58EFC5
split-complementary
#7958EF #EFC558 #83EF58
monochromatic
#3712BB #4C20EA #7958EF #A690F4 #D3C8FA

Accessibility & contrast

On white

4.71
#7958EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#7958EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7958EF
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958EF#FFFFFF#000000##FFFFFF
##7958EF1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F4
Deuteranopia (green-blind)
#006FEC
Tritanopia (blue-blind)
#4F7C9C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7958ef;
/* rgb */ color: rgb(121, 88, 239);
/* oklch */ color: oklch(57.8% 0.216 287.7);
Tailwind
colors: {
  custom: {
    50: '#a989f5',
    500: '#7958ef',
    950: '#000000',
  },
}
SCSS
$custom: #7958ef;
$custom-light: #a989f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7958ef",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 239
  },
  "hsl": {
    "h": 253.113,
    "s": 82.514,
    "l": 64.118
  },
  "oklch": {
    "l": 0.57827,
    "c": 0.21578,
    "h": 287.7
  },
  "luminance": 0.17276
}

Semantic roles & 50–950 ramp

primary
#7958EF
secondary
#E0ECB7
accent
#DF07B0
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7958EF

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

Preview Lab → · Contrast checker → · Palette generator →

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