#7958FC#7958FC

#7958FC is a mid, highly saturated violet. Relative luminance 0.181; OKLCH L 58.8% C 0.231 H 286.1°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#7958FC
RGBrgb(121, 88, 252)
HSLhsl(252, 96%, 67%)
HSVhsv(252, 65%, 99%)
CMYKcmyk(52%, 65.1%, 0%, 1.2%)
CIE-LABlab(49.58, 53.69, -77.39)
CIE-LCHlch(49.58, 94.19, 304.75°)
OKLaboklab(58.84% 0.0643 -0.2222)
OKLCHoklch(58.84% 0.231 286.1)
XYZxyz(28.9403, 18.0712, 94.0397)
Luminance0.1807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958FC #DBFC58
analogous
#5889FC #7958FC #CB58FC
triadic
#7958FC #FC7958 #58FC79
tetradic
#7958FC #FC5889 #DBFC58 #58FCCB
square
#7958FC #FC5889 #DBFC58 #58FCCB
split-complementary
#7958FC #FCCB58 #89FC58
monochromatic
#2E04D6 #491CFB #7958FC #A994FD #D9D0FE

Accessibility & contrast

On white

4.55
#7958FC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#7958FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7958FC
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958FC#FFFFFF#000000##000000
##7958FC1.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AFF
Deuteranopia (green-blind)
#0071F9
Tritanopia (blue-blind)
#4481A3
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7958fc;
/* rgb */ color: rgb(121, 88, 252);
/* oklch */ color: oklch(58.8% 0.231 286.1);
Tailwind
colors: {
  custom: {
    50: '#aa89fe',
    500: '#7958fc',
    950: '#000000',
  },
}
SCSS
$custom: #7958fc;
$custom-light: #aa89fe;
$custom-dark: #000000;
JSON
{
  "hex": "#7958fc",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 252
  },
  "hsl": {
    "h": 252.073,
    "s": 96.471,
    "l": 66.667
  },
  "oklch": {
    "l": 0.58839,
    "c": 0.23132,
    "h": 286.1
  },
  "luminance": 0.18073
}

Semantic roles & 50–950 ramp

primary
#7958FC
secondary
#E8F2BD
accent
#E600B7
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7958FC

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

Preview Lab → · Contrast checker → · Palette generator →

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