#7957CF#7957CF

#7957CF is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.3% C 0.178 H 292.7°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#7957CF
RGBrgb(121, 87, 207)
HSLhsl(257, 56%, 58%)
HSVhsv(257, 58%, 81%)
CMYKcmyk(41.5%, 58%, 0%, 18.8%)
CIE-LABlab(46.16, 41.62, -57.53)
CIE-LCHlch(46.16, 71.00, 305.89°)
OKLaboklab(55.33% 0.0686 -0.1638)
OKLCHoklch(55.33% 0.178 292.7)
XYZxyz(22.5528, 15.3857, 60.8009)
Luminance0.1539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7957CF #ADCF57
analogous
#5771CF #7957CF #B557CF
triadic
#7957CF #CF7957 #57CF79
tetradic
#7957CF #CF5771 #ADCF57 #57CFB5
square
#7957CF #CF5771 #ADCF57 #57CFB5
split-complementary
#7957CF #CFB557 #71CF57
monochromatic
#412685 #5834B5 #7957CF #9F87DD #C5B6EA

Accessibility & contrast

On white

5.15
#7957CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#7957CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7957CF
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7957CF#FFFFFF#000000##FFFFFF
##7957CF1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#056FD3
Deuteranopia (green-blind)
#196BCC
Tritanopia (blue-blind)
#62718B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7957cf;
/* rgb */ color: rgb(121, 87, 207);
/* oklch */ color: oklch(55.3% 0.178 292.7);
Tailwind
colors: {
  custom: {
    50: '#a588de',
    500: '#7957cf',
    950: '#000000',
  },
}
SCSS
$custom: #7957cf;
$custom-light: #a588de;
$custom-dark: #000000;
JSON
{
  "hex": "#7957cf",
  "rgb": {
    "r": 121,
    "g": 87,
    "b": 207
  },
  "hsl": {
    "h": 257,
    "s": 55.556,
    "l": 57.647
  },
  "oklch": {
    "l": 0.55334,
    "c": 0.17758,
    "h": 292.7
  },
  "luminance": 0.15386
}

Semantic roles & 50–950 ramp

primary
#7957CF
secondary
#CBD9A9
accent
#DF49B4
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7957CF

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

Preview Lab → · Contrast checker → · Palette generator →

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