#7958E6#7958E6

#7958E6 is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 57.1% C 0.205 H 288.9°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#7958E6
RGBrgb(121, 88, 230)
HSLhsl(254, 74%, 62%)
HSVhsv(254, 62%, 90%)
CMYKcmyk(47.4%, 61.7%, 0%, 9.8%)
CIE-LABlab(47.95, 47.47, -67.72)
CIE-LCHlch(47.95, 82.70, 305.03°)
OKLaboklab(57.15% 0.0664 -0.1938)
OKLCHoklch(57.15% 0.205 288.9)
XYZxyz(25.6537, 16.7565, 76.7302)
Luminance0.1676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958E6 #C5E658
analogous
#587EE6 #7958E6 #C058E6
triadic
#7958E6 #E67958 #58E679
tetradic
#7958E6 #E6587E #C5E658 #58E6C0
square
#7958E6 #E6587E #C5E658 #58E6C0
split-complementary
#7958E6 #E6C058 #7EE658
monochromatic
#3B19AA #4E23DE #7958E6 #A48DEE #CEC2F6

Accessibility & contrast

On white

4.83
#7958E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#7958E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7958E6
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958E6#FFFFFF#000000##FFFFFF
##7958E61.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075EB
Deuteranopia (green-blind)
#006EE3
Tritanopia (blue-blind)
#557997
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7958e6;
/* rgb */ color: rgb(121, 88, 230);
/* oklch */ color: oklch(57.1% 0.205 288.9);
Tailwind
colors: {
  custom: {
    50: '#a789ef',
    500: '#7958e6',
    950: '#000000',
  },
}
SCSS
$custom: #7958e6;
$custom-light: #a789ef;
$custom-dark: #000000;
JSON
{
  "hex": "#7958e6",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 230
  },
  "hsl": {
    "h": 253.944,
    "s": 73.958,
    "l": 62.353
  },
  "oklch": {
    "l": 0.57147,
    "c": 0.20484,
    "h": 288.9
  },
  "luminance": 0.16758
}

Semantic roles & 50–950 ramp

primary
#7958E6
secondary
#DBE7B3
accent
#D60FA8
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7958E6

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

Preview Lab → · Contrast checker → · Palette generator →

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