#7958EC#7958EC

#7958EC is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 57.6% C 0.212 H 288.1°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#7958EC
RGBrgb(121, 88, 236)
HSLhsl(253, 80%, 64%)
HSVhsv(253, 63%, 93%)
CMYKcmyk(48.7%, 62.7%, 0%, 7.5%)
CIE-LABlab(48.38, 49.16, -70.39)
CIE-LCHlch(48.38, 85.86, 304.93°)
OKLaboklab(57.6% 0.066 -0.2016)
OKLCHoklch(57.6% 0.212 288.1)
XYZxyz(26.5108, 17.0994, 81.2442)
Luminance0.1710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958EC #CBEC58
analogous
#5881EC #7958EC #C358EC
triadic
#7958EC #EC7958 #58EC79
tetradic
#7958EC #EC5881 #CBEC58 #58ECC3
square
#7958EC #EC5881 #CBEC58 #58ECC3
split-complementary
#7958EC #ECC358 #81EC58
monochromatic
#3815B5 #4D21E6 #7958EC #A58FF2 #D1C6F9

Accessibility & contrast

On white

4.75
#7958EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#7958EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7958EC
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958EC#FFFFFF#000000##FFFFFF
##7958EC1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F1
Deuteranopia (green-blind)
#006FE9
Tritanopia (blue-blind)
#517B9A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7958ec;
/* rgb */ color: rgb(121, 88, 236);
/* oklch */ color: oklch(57.6% 0.212 288.1);
Tailwind
colors: {
  custom: {
    50: '#a889f3',
    500: '#7958ec',
    950: '#000000',
  },
}
SCSS
$custom: #7958ec;
$custom-light: #a889f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7958ec",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 236
  },
  "hsl": {
    "h": 253.378,
    "s": 79.57,
    "l": 63.529
  },
  "oklch": {
    "l": 0.57598,
    "c": 0.21215,
    "h": 288.1
  },
  "luminance": 0.17101
}

Semantic roles & 50–950 ramp

primary
#7958EC
secondary
#DEEAB6
accent
#DC0AAD
background
#FAF8FF
surface
#F5F0FE
border
#CFCBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7958EC

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

Preview Lab → · Contrast checker → · Palette generator →

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