#7957C8#7957C8

#7957C8 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 54.9% C 0.169 H 294.0°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#7957C8
RGBrgb(121, 87, 200)
HSLhsl(258, 51%, 56%)
HSVhsv(258, 57%, 78%)
CMYKcmyk(39.5%, 56.5%, 0%, 21.6%)
CIE-LABlab(45.70, 39.70, -54.23)
CIE-LCHlch(45.70, 67.21, 306.21°)
OKLaboklab(54.86% 0.0686 -0.1541)
OKLCHoklch(54.86% 0.169 294)
XYZxyz(21.7159, 15.0510, 56.3934)
Luminance0.1505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7957C8 #A6C857
analogous
#576EC8 #7957C8 #B257C8
triadic
#7957C8 #C87957 #57C879
tetradic
#7957C8 #C8576E #A6C857 #57C8B2
square
#7957C8 #C8576E #A6C857 #57C8B2
split-complementary
#7957C8 #C8B257 #6EC857
monochromatic
#42297C #5A38AA #7957C8 #9E85D7 #C3B3E6

Accessibility & contrast

On white

5.24
#7957C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#7957C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7957C8
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7957C8#FFFFFF#000000##FFFFFF
##7957C81.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B6DCC
Deuteranopia (green-blind)
#276AC5
Tritanopia (blue-blind)
#656F87
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7957c8;
/* rgb */ color: rgb(121, 87, 200);
/* oklch */ color: oklch(54.9% 0.169 294.0);
Tailwind
colors: {
  custom: {
    50: '#a487d9',
    500: '#7957c8',
    950: '#000000',
  },
}
SCSS
$custom: #7957c8;
$custom-light: #a487d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7957c8",
  "rgb": {
    "r": 121,
    "g": 87,
    "b": 200
  },
  "hsl": {
    "h": 258.053,
    "s": 50.673,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54855,
    "c": 0.16869,
    "h": 294
  },
  "luminance": 0.15051
}

Semantic roles & 50–950 ramp

primary
#7957C8
secondary
#C7D5A6
accent
#DA4EB0
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7957C8

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

Preview Lab → · Contrast checker → · Palette generator →

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