#7957E7#7957E7

#7957E7 is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.1% C 0.207 H 289.0°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#7957E7
RGBrgb(121, 87, 231)
HSLhsl(254, 75%, 62%)
HSVhsv(254, 62%, 91%)
CMYKcmyk(47.6%, 62.3%, 0%, 9.4%)
CIE-LABlab(47.82, 48.31, -68.50)
CIE-LCHlch(47.82, 83.82, 305.19°)
OKLaboklab(57.07% 0.0674 -0.1961)
OKLCHoklch(57.07% 0.207 289)
XYZxyz(25.7130, 16.6498, 77.4447)
Luminance0.1665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7957E7 #C5E757
analogous
#577DE7 #7957E7 #C157E7
triadic
#7957E7 #E77957 #57E779
tetradic
#7957E7 #E7577D #C5E757 #57E7C1
square
#7957E7 #E7577D #C5E757 #57E7C1
split-complementary
#7957E7 #E7C157 #7DE757
monochromatic
#3B18AB #4E21DF #7957E7 #A48DEF #CEC2F6

Accessibility & contrast

On white

4.85
#7957E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#7957E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7957E7
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7957E7#FFFFFF#000000##FFFFFF
##7957E71.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EC
Deuteranopia (green-blind)
#006EE4
Tritanopia (blue-blind)
#557997
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7957e7;
/* rgb */ color: rgb(121, 87, 231);
/* oklch */ color: oklch(57.1% 0.207 289.0);
Tailwind
colors: {
  custom: {
    50: '#a888f0',
    500: '#7957e7',
    950: '#000000',
  },
}
SCSS
$custom: #7957e7;
$custom-light: #a888f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7957e7",
  "rgb": {
    "r": 121,
    "g": 87,
    "b": 231
  },
  "hsl": {
    "h": 254.167,
    "s": 75,
    "l": 62.353
  },
  "oklch": {
    "l": 0.5707,
    "c": 0.20734,
    "h": 289
  },
  "luminance": 0.16651
}

Semantic roles & 50–950 ramp

primary
#7957E7
secondary
#DBE7B3
accent
#D70EA8
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7957E7

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

Preview Lab → · Contrast checker → · Palette generator →

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