#7957EB#7957EB

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

Color values

HEX#7957EB
RGBrgb(121, 87, 235)
HSLhsl(254, 79%, 63%)
HSVhsv(254, 63%, 92%)
CMYKcmyk(48.5%, 63%, 0%, 7.8%)
CIE-LABlab(48.11, 49.43, -70.28)
CIE-LCHlch(48.11, 85.93, 305.12°)
OKLaboklab(57.37% 0.067 -0.2013)
OKLCHoklch(57.37% 0.212 288.4)
XYZxyz(26.2844, 16.8784, 80.4541)
Luminance0.1688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7957EB #C9EB57
analogous
#577FEB #7957EB #C357EB
triadic
#7957EB #EB7957 #57EB79
tetradic
#7957EB #EB577F #C9EB57 #57EBC3
square
#7957EB #EB577F #C9EB57 #57EBC3
split-complementary
#7957EB #EBC357 #7FEB57
monochromatic
#3915B2 #4D20E4 #7957EB #A58EF2 #D0C4F8

Accessibility & contrast

On white

4.80
#7957EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#7957EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7957EB
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7957EB#FFFFFF#000000##FFFFFF
##7957EB1.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F0
Deuteranopia (green-blind)
#006EE8
Tritanopia (blue-blind)
#527B99
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7957eb;
/* rgb */ color: rgb(121, 87, 235);
/* oklch */ color: oklch(57.4% 0.212 288.4);
Tailwind
colors: {
  custom: {
    50: '#a888f2',
    500: '#7957eb',
    950: '#000000',
  },
}
SCSS
$custom: #7957eb;
$custom-light: #a888f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7957eb",
  "rgb": {
    "r": 121,
    "g": 87,
    "b": 235
  },
  "hsl": {
    "h": 253.784,
    "s": 78.723,
    "l": 63.137
  },
  "oklch": {
    "l": 0.57373,
    "c": 0.21219,
    "h": 288.4
  },
  "luminance": 0.16879
}

Semantic roles & 50–950 ramp

primary
#7957EB
secondary
#DDE9B4
accent
#DB0AAB
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7957EB

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

Preview Lab → · Contrast checker → · Palette generator →

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