#7958DF#7958DF

#7958DF is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.6% C 0.196 H 289.9°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#7958DF
RGBrgb(121, 88, 223)
HSLhsl(255, 68%, 61%)
HSVhsv(255, 61%, 87%)
CMYKcmyk(45.7%, 60.5%, 0%, 12.5%)
CIE-LABlab(47.46, 45.51, -64.56)
CIE-LCHlch(47.46, 78.98, 305.18°)
OKLaboklab(56.63% 0.0669 -0.1845)
OKLCHoklch(56.63% 0.196 289.9)
XYZxyz(24.6904, 16.3712, 71.6568)
Luminance0.1637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958DF #BEDF58
analogous
#587ADF #7958DF #BC58DF
triadic
#7958DF #DF7958 #58DF79
tetradic
#7958DF #DF587A #BEDF58 #58DFBC
square
#7958DF #DF587A #BEDF58 #58DFBC
split-complementary
#7958DF #DFBC58 #7ADF58
monochromatic
#3E1E9E #5228D2 #7958DF #A28BE9 #CBBFF3

Accessibility & contrast

On white

4.91
#7958DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#7958DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7958DF
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958DF#FFFFFF#000000##FFFFFF
##7958DF1.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E3
Deuteranopia (green-blind)
#006DDC
Tritanopia (blue-blind)
#597793
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7958df;
/* rgb */ color: rgb(121, 88, 223);
/* oklch */ color: oklch(56.6% 0.196 289.9);
Tailwind
colors: {
  custom: {
    50: '#a788ea',
    500: '#7958df',
    950: '#000000',
  },
}
SCSS
$custom: #7958df;
$custom-light: #a788ea;
$custom-dark: #000000;
JSON
{
  "hex": "#7958df",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 223
  },
  "hsl": {
    "h": 254.667,
    "s": 67.839,
    "l": 60.98
  },
  "oklch": {
    "l": 0.56631,
    "c": 0.19622,
    "h": 289.9
  },
  "luminance": 0.16372
}

Semantic roles & 50–950 ramp

primary
#7958DF
secondary
#D6E3B0
accent
#D016A2
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7958DF

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

Preview Lab → · Contrast checker → · Palette generator →

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