#7958F1#7958F1

#7958F1 is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 58.0% C 0.218 H 287.5°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#7958F1
RGBrgb(121, 88, 241)
HSLhsl(253, 85%, 65%)
HSVhsv(253, 63%, 95%)
CMYKcmyk(49.8%, 63.5%, 0%, 5.5%)
CIE-LABlab(48.75, 50.58, -72.60)
CIE-LCHlch(48.75, 88.48, 304.86°)
OKLaboklab(57.98% 0.0655 -0.2081)
OKLCHoklch(57.98% 0.218 287.5)
XYZxyz(27.2474, 17.3940, 85.1237)
Luminance0.1739 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958F1 #D0F158
analogous
#5884F1 #7958F1 #C558F1
triadic
#7958F1 #F17958 #58F179
tetradic
#7958F1 #F15884 #D0F158 #58F1C5
square
#7958F1 #F15884 #D0F158 #58F1C5
split-complementary
#7958F1 #F1C558 #84F158
monochromatic
#3610BF #4C20EC #7958F1 #A690F6 #D4C9FA

Accessibility & contrast

On white

4.69
#7958F1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#7958F1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7958F1
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958F1#FFFFFF#000000##FFFFFF
##7958F11.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F6
Deuteranopia (green-blind)
#0070EE
Tritanopia (blue-blind)
#4E7D9D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7958f1;
/* rgb */ color: rgb(121, 88, 241);
/* oklch */ color: oklch(58.0% 0.218 287.5);
Tailwind
colors: {
  custom: {
    50: '#a989f7',
    500: '#7958f1',
    950: '#000000',
  },
}
SCSS
$custom: #7958f1;
$custom-light: #a989f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7958f1",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 241
  },
  "hsl": {
    "h": 252.941,
    "s": 84.53,
    "l": 64.51
  },
  "oklch": {
    "l": 0.5798,
    "c": 0.21819,
    "h": 287.5
  },
  "luminance": 0.17395
}

Semantic roles & 50–950 ramp

primary
#7958F1
secondary
#E1EDB8
accent
#E105B1
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7958F1

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

Preview Lab → · Contrast checker → · Palette generator →

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