#7957BC#7957BC

#7957BC is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.1% C 0.153 H 296.5°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7957BC
RGBrgb(121, 87, 188)
HSLhsl(260, 43%, 54%)
HSVhsv(260, 54%, 74%)
CMYKcmyk(35.6%, 53.7%, 0%, 26.3%)
CIE-LABlab(44.96, 36.46, -48.47)
CIE-LCHlch(44.96, 60.65, 306.95°)
OKLaboklab(54.07% 0.0683 -0.1372)
OKLCHoklch(54.07% 0.153 296.5)
XYZxyz(20.3682, 14.5119, 49.2952)
Luminance0.1451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7957BC #9ABC57
analogous
#5768BC #7957BC #AC57BC
triadic
#7957BC #BC7957 #57BC79
tetradic
#7957BC #BC5768 #9ABC57 #57BCAC
square
#7957BC #BC5768 #9ABC57 #57BCAC
split-complementary
#7957BC #BCAC57 #68BC57
monochromatic
#422C6D #5C3D99 #7957BC #9C83CD #BFAFDF

Accessibility & contrast

On white

5.38
#7957BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#7957BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7957BC
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7957BC#FFFFFF#000000##FFFFFF
##7957BC1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D6BBF
Deuteranopia (green-blind)
#3769BA
Tritanopia (blue-blind)
#6A6B81
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7957bc;
/* rgb */ color: rgb(121, 87, 188);
/* oklch */ color: oklch(54.1% 0.153 296.5);
Tailwind
colors: {
  custom: {
    50: '#a387d1',
    500: '#7957bc',
    950: '#000000',
  },
}
SCSS
$custom: #7957bc;
$custom-light: #a387d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7957bc",
  "rgb": {
    "r": 121,
    "g": 87,
    "b": 188
  },
  "hsl": {
    "h": 260.198,
    "s": 42.979,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54065,
    "c": 0.15325,
    "h": 296.5
  },
  "luminance": 0.14512
}

Semantic roles & 50–950 ramp

primary
#7957BC
secondary
#BECDA2
accent
#D355A8
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#0F0B14
muted
#7F7C82

Preview Lab

Preview with #7957BC

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

Preview Lab → · Contrast checker → · Palette generator →

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