#7958E8#7958E8

#7958E8 is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 57.3% C 0.207 H 288.7°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#7958E8
RGBrgb(121, 88, 232)
HSLhsl(254, 76%, 63%)
HSVhsv(254, 62%, 91%)
CMYKcmyk(47.8%, 62.1%, 0%, 9%)
CIE-LABlab(48.10, 48.04, -68.61)
CIE-LCHlch(48.10, 83.76, 305.00°)
OKLaboklab(57.3% 0.0663 -0.1964)
OKLCHoklch(57.3% 0.207 288.7)
XYZxyz(25.9362, 16.8695, 78.2178)
Luminance0.1687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958E8 #C7E858
analogous
#587FE8 #7958E8 #C158E8
triadic
#7958E8 #E87958 #58E879
tetradic
#7958E8 #E8587F #C7E858 #58E8C1
square
#7958E8 #E8587F #C7E858 #58E8C1
split-complementary
#7958E8 #E8C158 #7FE858
monochromatic
#3A18AE #4E22E1 #7958E8 #A48EEF #CFC4F7

Accessibility & contrast

On white

4.80
#7958E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#7958E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7958E8
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958E8#FFFFFF#000000##FFFFFF
##7958E81.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075ED
Deuteranopia (green-blind)
#006FE5
Tritanopia (blue-blind)
#547A98
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7958e8;
/* rgb */ color: rgb(121, 88, 232);
/* oklch */ color: oklch(57.3% 0.207 288.7);
Tailwind
colors: {
  custom: {
    50: '#a889f0',
    500: '#7958e8',
    950: '#000000',
  },
}
SCSS
$custom: #7958e8;
$custom-light: #a889f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7958e8",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 232
  },
  "hsl": {
    "h": 253.75,
    "s": 75.789,
    "l": 62.745
  },
  "oklch": {
    "l": 0.57296,
    "c": 0.20729,
    "h": 288.7
  },
  "luminance": 0.16871
}

Semantic roles & 50–950 ramp

primary
#7958E8
secondary
#DCE8B4
accent
#D80EAA
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #7958E8

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

Preview Lab → · Contrast checker → · Palette generator →

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