#7958E7#7958E7

#7958E7 is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 57.2% C 0.206 H 288.8°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#7958E7
RGBrgb(121, 88, 231)
HSLhsl(254, 75%, 63%)
HSVhsv(254, 62%, 91%)
CMYKcmyk(47.6%, 61.9%, 0%, 9.4%)
CIE-LABlab(48.02, 47.76, -68.16)
CIE-LCHlch(48.02, 83.23, 305.01°)
OKLaboklab(57.22% 0.0664 -0.1951)
OKLCHoklch(57.22% 0.206 288.8)
XYZxyz(25.7945, 16.8128, 77.4719)
Luminance0.1681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958E7 #C6E758
analogous
#587FE7 #7958E7 #C058E7
triadic
#7958E7 #E77958 #58E779
tetradic
#7958E7 #E7587F #C6E758 #58E7C0
square
#7958E7 #E7587F #C6E758 #58E7C0
split-complementary
#7958E7 #E7C058 #7FE758
monochromatic
#3B19AC #4E22DF #7958E7 #A48EEF #CFC3F6

Accessibility & contrast

On white

4.81
#7958E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#7958E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7958E7
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958E7#FFFFFF#000000##FFFFFF
##7958E71.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075EC
Deuteranopia (green-blind)
#006EE4
Tritanopia (blue-blind)
#547A97
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7958e7;
/* rgb */ color: rgb(121, 88, 231);
/* oklch */ color: oklch(57.2% 0.206 288.8);
Tailwind
colors: {
  custom: {
    50: '#a889f0',
    500: '#7958e7',
    950: '#000000',
  },
}
SCSS
$custom: #7958e7;
$custom-light: #a889f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7958e7",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 231
  },
  "hsl": {
    "h": 253.846,
    "s": 74.869,
    "l": 62.549
  },
  "oklch": {
    "l": 0.57221,
    "c": 0.20606,
    "h": 288.8
  },
  "luminance": 0.16814
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7958E7

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

Preview Lab → · Contrast checker → · Palette generator →

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