#7957EC#7957EC

#7957EC is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 57.4% C 0.213 H 288.3°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#7957EC
RGBrgb(121, 87, 236)
HSLhsl(254, 80%, 63%)
HSVhsv(254, 63%, 93%)
CMYKcmyk(48.7%, 63.1%, 0%, 7.5%)
CIE-LABlab(48.18, 49.72, -70.73)
CIE-LCHlch(48.18, 86.45, 305.10°)
OKLaboklab(57.45% 0.067 -0.2026)
OKLCHoklch(57.45% 0.213 288.3)
XYZxyz(26.4293, 16.9363, 81.2171)
Luminance0.1694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7957EC #CAEC57
analogous
#577FEC #7957EC #C357EC
triadic
#7957EC #EC7957 #57EC79
tetradic
#7957EC #EC577F #CAEC57 #57ECC3
square
#7957EC #EC577F #CAEC57 #57ECC3
split-complementary
#7957EC #ECC357 #7FEC57
monochromatic
#3914B4 #4D20E6 #7957EC #A58EF2 #D1C5F8

Accessibility & contrast

On white

4.79
#7957EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#7957EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7957EC
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7957EC#FFFFFF#000000##FFFFFF
##7957EC1.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F1
Deuteranopia (green-blind)
#006EE9
Tritanopia (blue-blind)
#517B9A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7957ec;
/* rgb */ color: rgb(121, 87, 236);
/* oklch */ color: oklch(57.4% 0.213 288.3);
Tailwind
colors: {
  custom: {
    50: '#a888f3',
    500: '#7957ec',
    950: '#000000',
  },
}
SCSS
$custom: #7957ec;
$custom-light: #a888f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7957ec",
  "rgb": {
    "r": 121,
    "g": 87,
    "b": 236
  },
  "hsl": {
    "h": 253.691,
    "s": 79.679,
    "l": 63.333
  },
  "oklch": {
    "l": 0.57449,
    "c": 0.21339,
    "h": 288.3
  },
  "luminance": 0.16937
}

Semantic roles & 50–950 ramp

primary
#7957EC
secondary
#DEEAB5
accent
#DC0AAC
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7957EC

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

Preview Lab → · Contrast checker → · Palette generator →

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