#7958DB#7958DB

#7958DB is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.3% C 0.191 H 290.5°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7958DB
RGBrgb(121, 88, 219)
HSLhsl(255, 65%, 60%)
HSVhsv(255, 60%, 86%)
CMYKcmyk(44.7%, 59.8%, 0%, 14.1%)
CIE-LABlab(47.18, 44.39, -62.73)
CIE-LCHlch(47.18, 76.85, 305.28°)
OKLaboklab(56.34% 0.0671 -0.1791)
OKLCHoklch(56.34% 0.191 290.5)
XYZxyz(24.1575, 16.1580, 68.8501)
Luminance0.1616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958DB #BADB58
analogous
#5878DB #7958DB #BB58DB
triadic
#7958DB #DB7958 #58DB79
tetradic
#7958DB #DB5878 #BADB58 #58DBBB
square
#7958DB #DB5878 #BADB58 #58DBBB
split-complementary
#7958DB #DBBB58 #78DB58
monochromatic
#3F2198 #542CCA #7958DB #A18AE6 #CABDF1

Accessibility & contrast

On white

4.96
#7958DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7958DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7958DB
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958DB#FFFFFF#000000##FFFFFF
##7958DB1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DF
Deuteranopia (green-blind)
#006DD8
Tritanopia (blue-blind)
#5C7691
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7958db;
/* rgb */ color: rgb(121, 88, 219);
/* oklch */ color: oklch(56.3% 0.191 290.5);
Tailwind
colors: {
  custom: {
    50: '#a688e7',
    500: '#7958db',
    950: '#000000',
  },
}
SCSS
$custom: #7958db;
$custom-light: #a688e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7958db",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 219
  },
  "hsl": {
    "h": 255.115,
    "s": 64.532,
    "l": 60.196
  },
  "oklch": {
    "l": 0.56341,
    "c": 0.19125,
    "h": 290.5
  },
  "luminance": 0.16159
}

Semantic roles & 50–950 ramp

primary
#7958DB
secondary
#D4E1AE
accent
#CC199F
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7958DB

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

Preview Lab → · Contrast checker → · Palette generator →

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