#7958DD#7958DD

#7958DD is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.5% C 0.194 H 290.2°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#7958DD
RGBrgb(121, 88, 221)
HSLhsl(255, 66%, 61%)
HSVhsv(255, 60%, 87%)
CMYKcmyk(45.2%, 60.2%, 0%, 13.3%)
CIE-LABlab(47.32, 44.95, -63.64)
CIE-LCHlch(47.32, 77.92, 305.23°)
OKLaboklab(56.49% 0.067 -0.1818)
OKLCHoklch(56.49% 0.194 290.2)
XYZxyz(24.4224, 16.2640, 70.2451)
Luminance0.1626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7958DD #BCDD58
analogous
#5879DD #7958DD #BB58DD
triadic
#7958DD #DD7958 #58DD79
tetradic
#7958DD #DD5879 #BCDD58 #58DDBB
square
#7958DD #DD5879 #BCDD58 #58DDBB
split-complementary
#7958DD #DDBB58 #79DD58
monochromatic
#3E209B #532ACE #7958DD #A28BE7 #CBBEF2

Accessibility & contrast

On white

4.94
#7958DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#7958DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7958DD
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7958DD#FFFFFF#000000##FFFFFF
##7958DD1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E1
Deuteranopia (green-blind)
#006DDA
Tritanopia (blue-blind)
#5A7692
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7958dd;
/* rgb */ color: rgb(121, 88, 221);
/* oklch */ color: oklch(56.5% 0.194 290.2);
Tailwind
colors: {
  custom: {
    50: '#a688e8',
    500: '#7958dd',
    950: '#000000',
  },
}
SCSS
$custom: #7958dd;
$custom-light: #a688e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7958dd",
  "rgb": {
    "r": 121,
    "g": 88,
    "b": 221
  },
  "hsl": {
    "h": 254.887,
    "s": 66.169,
    "l": 60.588
  },
  "oklch": {
    "l": 0.56485,
    "c": 0.19374,
    "h": 290.2
  },
  "luminance": 0.16265
}

Semantic roles & 50–950 ramp

primary
#7958DD
secondary
#D5E2AF
accent
#CE17A1
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7958DD

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

Preview Lab → · Contrast checker → · Palette generator →

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