#7957CC#7957CC

#7957CC is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.1% C 0.174 H 293.3°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#7957CC
RGBrgb(121, 87, 204)
HSLhsl(257, 53%, 57%)
HSVhsv(257, 57%, 80%)
CMYKcmyk(40.7%, 57.4%, 0%, 20%)
CIE-LABlab(45.96, 40.80, -56.12)
CIE-LCHlch(45.96, 69.38, 306.02°)
OKLaboklab(55.13% 0.0686 -0.1597)
OKLCHoklch(55.13% 0.174 293.3)
XYZxyz(22.1895, 15.2404, 58.8876)
Luminance0.1524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7957CC #AACC57
analogous
#5770CC #7957CC #B457CC
triadic
#7957CC #CC7957 #57CC79
tetradic
#7957CC #CC5770 #AACC57 #57CCB4
square
#7957CC #CC5770 #AACC57 #57CCB4
split-complementary
#7957CC #CCB457 #70CC57
monochromatic
#412781 #5936B0 #7957CC #9E86DA #C4B5E9

Accessibility & contrast

On white

5.19
#7957CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#7957CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7957CC
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7957CC#FFFFFF#000000##FFFFFF
##7957CC1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#116ED0
Deuteranopia (green-blind)
#206BC9
Tritanopia (blue-blind)
#637089
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7957cc;
/* rgb */ color: rgb(121, 87, 204);
/* oklch */ color: oklch(55.1% 0.174 293.3);
Tailwind
colors: {
  custom: {
    50: '#a587dc',
    500: '#7957cc',
    950: '#000000',
  },
}
SCSS
$custom: #7957cc;
$custom-light: #a587dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7957cc",
  "rgb": {
    "r": 121,
    "g": 87,
    "b": 204
  },
  "hsl": {
    "h": 257.436,
    "s": 53.425,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55127,
    "c": 0.17378,
    "h": 293.3
  },
  "luminance": 0.15241
}

Semantic roles & 50–950 ramp

primary
#7957CC
secondary
#C9D7A8
accent
#DD4BB2
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7957CC

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

Preview Lab → · Contrast checker → · Palette generator →

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