#7957CB#7957CB

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

Color values

HEX#7957CB
RGBrgb(121, 87, 203)
HSLhsl(258, 53%, 57%)
HSVhsv(258, 57%, 80%)
CMYKcmyk(40.4%, 57.1%, 0%, 20.4%)
CIE-LABlab(45.90, 40.52, -55.65)
CIE-LCHlch(45.90, 68.84, 306.06°)
OKLaboklab(55.06% 0.0686 -0.1583)
OKLCHoklch(55.06% 0.173 293.4)
XYZxyz(22.0700, 15.1926, 58.2580)
Luminance0.1519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7957CB #A9CB57
analogous
#576FCB #7957CB #B357CB
triadic
#7957CB #CB7957 #57CB79
tetradic
#7957CB #CB576F #A9CB57 #57CBB3
square
#7957CB #CB576F #A9CB57 #57CBB3
split-complementary
#7957CB #CBB357 #6FCB57
monochromatic
#422880 #5936AF #7957CB #9E86D9 #C4B4E8

Accessibility & contrast

On white

5.20
#7957CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#7957CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7957CB
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7957CB#FFFFFF#000000##FFFFFF
##7957CB1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#146ECF
Deuteranopia (green-blind)
#226BC8
Tritanopia (blue-blind)
#637089
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7957cb;
/* rgb */ color: rgb(121, 87, 203);
/* oklch */ color: oklch(55.1% 0.173 293.4);
Tailwind
colors: {
  custom: {
    50: '#a587db',
    500: '#7957cb',
    950: '#000000',
  },
}
SCSS
$custom: #7957cb;
$custom-light: #a587db;
$custom-dark: #000000;
JSON
{
  "hex": "#7957cb",
  "rgb": {
    "r": 121,
    "g": 87,
    "b": 203
  },
  "hsl": {
    "h": 257.586,
    "s": 52.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.55059,
    "c": 0.17251,
    "h": 293.4
  },
  "luminance": 0.15193
}

Semantic roles & 50–950 ramp

primary
#7957CB
secondary
#C9D7A7
accent
#DC4CB2
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7957CB

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

Preview Lab → · Contrast checker → · Palette generator →

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