#7958F2#7958F2

#7958F2 is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 58.1% C 0.219 H 287.3°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#7958F2
RGBrgb(121, 88, 242)
HSLhsl(253, 86%, 65%)
HSVhsv(253, 64%, 95%)
CMYKcmyk(50%, 63.6%, 0%, 5.1%)
CIE-LABlab(48.83, 50.86, -73.04)
CIE-LCHlch(48.83, 89.00, 304.85°)
OKLaboklab(58.06% 0.0654 -0.2094)
OKLCHoklch(58.06% 0.219 287.3)
XYZxyz(27.3972, 17.4539, 85.9125)
Luminance0.1746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958F2 #D1F258
analogous
#5884F2 #7958F2 #C658F2
triadic
#7958F2 #F27958 #58F279
tetradic
#7958F2 #F25884 #D1F258 #58F2C6
square
#7958F2 #F25884 #D1F258 #58F2C6
split-complementary
#7958F2 #F2C658 #84F258
monochromatic
#350FC1 #4B1FEE #7958F2 #A791F6 #D4CAFB

Accessibility & contrast

On white

4.68
#7958F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#7958F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7958F2
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958F2#FFFFFF#000000##FFFFFF
##7958F21.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F7
Deuteranopia (green-blind)
#0070EF
Tritanopia (blue-blind)
#4D7E9D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7958f2;
/* rgb */ color: rgb(121, 88, 242);
/* oklch */ color: oklch(58.1% 0.219 287.3);
Tailwind
colors: {
  custom: {
    50: '#a989f7',
    500: '#7958f2',
    950: '#000000',
  },
}
SCSS
$custom: #7958f2;
$custom-light: #a989f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7958f2",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 242
  },
  "hsl": {
    "h": 252.857,
    "s": 85.556,
    "l": 64.706
  },
  "oklch": {
    "l": 0.58057,
    "c": 0.21939,
    "h": 287.3
  },
  "luminance": 0.17455
}

Semantic roles & 50–950 ramp

primary
#7958F2
secondary
#E2EDB8
accent
#E203B2
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7958F2

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

Preview Lab → · Contrast checker → · Palette generator →

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