#7957DC#7957DC

#7957DC is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.3% C 0.194 H 290.6°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#7957DC
RGBrgb(121, 87, 220)
HSLhsl(255, 66%, 60%)
HSVhsv(255, 60%, 86%)
CMYKcmyk(45%, 60.5%, 0%, 13.7%)
CIE-LABlab(47.04, 45.23, -63.53)
CIE-LCHlch(47.04, 77.99, 305.45°)
OKLaboklab(56.26% 0.0681 -0.1815)
OKLCHoklch(56.26% 0.194 290.6)
XYZxyz(24.2080, 16.0478, 69.5183)
Luminance0.1605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7957DC #BADC57
analogous
#5778DC #7957DC #BB57DC
triadic
#7957DC #DC7957 #57DC79
tetradic
#7957DC #DC5778 #BADC57 #57DCBB
square
#7957DC #DC5778 #BADC57 #57DCBB
split-complementary
#7957DC #DCBB57 #78DC57
monochromatic
#3F2099 #542ACB #7957DC #A18AE7 #CABCF1

Accessibility & contrast

On white

4.99
#7957DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#7957DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7957DC
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7957DC#FFFFFF#000000##FFFFFF
##7957DC1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E0
Deuteranopia (green-blind)
#006DD9
Tritanopia (blue-blind)
#5B7591
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7957dc;
/* rgb */ color: rgb(121, 87, 220);
/* oklch */ color: oklch(56.3% 0.194 290.6);
Tailwind
colors: {
  custom: {
    50: '#a688e8',
    500: '#7957dc',
    950: '#000000',
  },
}
SCSS
$custom: #7957dc;
$custom-light: #a688e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7957dc",
  "rgb": {
    "r": 121,
    "g": 87,
    "b": 220
  },
  "hsl": {
    "h": 255.338,
    "s": 65.517,
    "l": 60.196
  },
  "oklch": {
    "l": 0.56257,
    "c": 0.19383,
    "h": 290.6
  },
  "luminance": 0.16049
}

Semantic roles & 50–950 ramp

primary
#7957DC
secondary
#D4E1AE
accent
#CD189F
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7957DC

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

Preview Lab → · Contrast checker → · Palette generator →

#7957DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva