#7957CE#7957CE

#7957CE is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.3% C 0.176 H 292.9°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#7957CE
RGBrgb(121, 87, 206)
HSLhsl(257, 55%, 57%)
HSVhsv(257, 58%, 81%)
CMYKcmyk(41.3%, 57.8%, 0%, 19.2%)
CIE-LABlab(46.09, 41.35, -57.06)
CIE-LCHlch(46.09, 70.46, 305.93°)
OKLaboklab(55.27% 0.0686 -0.1624)
OKLCHoklch(55.27% 0.176 292.9)
XYZxyz(22.4309, 15.3370, 60.1590)
Luminance0.1534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7957CE #ACCE57
analogous
#5770CE #7957CE #B557CE
triadic
#7957CE #CE7957 #57CE79
tetradic
#7957CE #CE5770 #ACCE57 #57CEB5
square
#7957CE #CE5770 #ACCE57 #57CEB5
split-complementary
#7957CE #CEB557 #70CE57
monochromatic
#412784 #5934B3 #7957CE #9F86DC #C5B6EA

Accessibility & contrast

On white

5.16
#7957CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#7957CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7957CE
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7957CE#FFFFFF#000000##FFFFFF
##7957CE1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A6FD2
Deuteranopia (green-blind)
#1C6BCB
Tritanopia (blue-blind)
#62718A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7957ce;
/* rgb */ color: rgb(121, 87, 206);
/* oklch */ color: oklch(55.3% 0.176 292.9);
Tailwind
colors: {
  custom: {
    50: '#a587de',
    500: '#7957ce',
    950: '#000000',
  },
}
SCSS
$custom: #7957ce;
$custom-light: #a587de;
$custom-dark: #000000;
JSON
{
  "hex": "#7957ce",
  "rgb": {
    "r": 121,
    "g": 87,
    "b": 206
  },
  "hsl": {
    "h": 257.143,
    "s": 54.839,
    "l": 57.451
  },
  "oklch": {
    "l": 0.55265,
    "c": 0.17631,
    "h": 292.9
  },
  "luminance": 0.15338
}

Semantic roles & 50–950 ramp

primary
#7957CE
secondary
#CBD8A8
accent
#DE4AB4
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7957CE

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

Preview Lab → · Contrast checker → · Palette generator →

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