#7957BF#7957BF

#7957BF is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.3% C 0.157 H 295.8°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#7957BF
RGBrgb(121, 87, 191)
HSLhsl(260, 45%, 55%)
HSVhsv(260, 54%, 75%)
CMYKcmyk(36.6%, 54.5%, 0%, 25.1%)
CIE-LABlab(45.14, 37.26, -49.92)
CIE-LCHlch(45.14, 62.30, 306.74°)
OKLaboklab(54.26% 0.0684 -0.1415)
OKLCHoklch(54.26% 0.157 295.8)
XYZxyz(20.6949, 14.6426, 51.0161)
Luminance0.1464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7957BF #9DBF57
analogous
#5769BF #7957BF #AD57BF
triadic
#7957BF #BF7957 #57BF79
tetradic
#7957BF #BF5769 #9DBF57 #57BFAD
square
#7957BF #BF5769 #9DBF57 #57BFAD
split-complementary
#7957BF #BFAD57 #69BF57
monochromatic
#422B71 #5C3C9D #7957BF #9C83D0 #C0B0E1

Accessibility & contrast

On white

5.35
#7957BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#7957BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7957BF
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7957BF#FFFFFF#000000##FFFFFF
##7957BF1.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A6CC3
Deuteranopia (green-blind)
#3369BD
Tritanopia (blue-blind)
#686C83
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7957bf;
/* rgb */ color: rgb(121, 87, 191);
/* oklch */ color: oklch(54.3% 0.157 295.8);
Tailwind
colors: {
  custom: {
    50: '#a487d3',
    500: '#7957bf',
    950: '#000000',
  },
}
SCSS
$custom: #7957bf;
$custom-light: #a487d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7957bf",
  "rgb": {
    "r": 121,
    "g": 87,
    "b": 191
  },
  "hsl": {
    "h": 259.615,
    "s": 44.828,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54259,
    "c": 0.15713,
    "h": 295.8
  },
  "luminance": 0.14643
}

Semantic roles & 50–950 ramp

primary
#7957BF
secondary
#C1CFA3
accent
#D553AA
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#0F0B14
muted
#7F7C83

Preview Lab

Preview with #7957BF

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

Preview Lab → · Contrast checker → · Palette generator →

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