#7958F0#7958F0

#7958F0 is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 57.9% C 0.217 H 287.6°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#7958F0
RGBrgb(121, 88, 240)
HSLhsl(253, 84%, 64%)
HSVhsv(253, 63%, 94%)
CMYKcmyk(49.6%, 63.3%, 0%, 5.9%)
CIE-LABlab(48.68, 50.30, -72.16)
CIE-LCHlch(48.68, 87.96, 304.88°)
OKLaboklab(57.9% 0.0656 -0.2068)
OKLCHoklch(57.9% 0.217 287.6)
XYZxyz(27.0985, 17.3344, 84.3392)
Luminance0.1734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958F0 #CFF058
analogous
#5883F0 #7958F0 #C558F0
triadic
#7958F0 #F07958 #58F079
tetradic
#7958F0 #F05883 #CFF058 #58F0C5
square
#7958F0 #F05883 #CFF058 #58F0C5
split-complementary
#7958F0 #F0C558 #83F058
monochromatic
#3611BD #4C20EB #7958F0 #A690F5 #D3C8FA

Accessibility & contrast

On white

4.70
#7958F0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#7958F0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7958F0
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958F0#FFFFFF#000000##FFFFFF
##7958F01.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F5
Deuteranopia (green-blind)
#0070ED
Tritanopia (blue-blind)
#4E7D9C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7958f0;
/* rgb */ color: rgb(121, 88, 240);
/* oklch */ color: oklch(57.9% 0.217 287.6);
Tailwind
colors: {
  custom: {
    50: '#a989f6',
    500: '#7958f0',
    950: '#000000',
  },
}
SCSS
$custom: #7958f0;
$custom-light: #a989f6;
$custom-dark: #000000;
JSON
{
  "hex": "#7958f0",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 240
  },
  "hsl": {
    "h": 253.026,
    "s": 83.516,
    "l": 64.314
  },
  "oklch": {
    "l": 0.57903,
    "c": 0.21699,
    "h": 287.6
  },
  "luminance": 0.17336
}

Semantic roles & 50–950 ramp

primary
#7958F0
secondary
#E1ECB8
accent
#E006B1
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7958F0

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

Preview Lab → · Contrast checker → · Palette generator →

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