#7957CD#7957CD

#7957CD is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.2% C 0.175 H 293.1°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#7957CD
RGBrgb(121, 87, 205)
HSLhsl(257, 54%, 57%)
HSVhsv(257, 58%, 80%)
CMYKcmyk(41%, 57.6%, 0%, 19.6%)
CIE-LABlab(46.03, 41.07, -56.59)
CIE-LCHlch(46.03, 69.92, 305.97°)
OKLaboklab(55.2% 0.0686 -0.161)
OKLCHoklch(55.2% 0.175 293.1)
XYZxyz(22.3098, 15.2885, 59.5213)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7957CD #ABCD57
analogous
#5770CD #7957CD #B457CD
triadic
#7957CD #CD7957 #57CD79
tetradic
#7957CD #CD5770 #ABCD57 #57CDB4
square
#7957CD #CD5770 #ABCD57 #57CDB4
split-complementary
#7957CD #CDB457 #70CD57
monochromatic
#412783 #5935B2 #7957CD #9F86DB #C4B5E9

Accessibility & contrast

On white

5.18
#7957CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#7957CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7957CD
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7957CD#FFFFFF#000000##FFFFFF
##7957CD1.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E6ED1
Deuteranopia (green-blind)
#1E6BCA
Tritanopia (blue-blind)
#63718A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7957cd;
/* rgb */ color: rgb(121, 87, 205);
/* oklch */ color: oklch(55.2% 0.175 293.1);
Tailwind
colors: {
  custom: {
    50: '#a587dd',
    500: '#7957cd',
    950: '#000000',
  },
}
SCSS
$custom: #7957cd;
$custom-light: #a587dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7957cd",
  "rgb": {
    "r": 121,
    "g": 87,
    "b": 205
  },
  "hsl": {
    "h": 257.288,
    "s": 54.128,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55196,
    "c": 0.17504,
    "h": 293.1
  },
  "luminance": 0.15289
}

Semantic roles & 50–950 ramp

primary
#7957CD
secondary
#CAD8A8
accent
#DD4AB3
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7957CD

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

Preview Lab → · Contrast checker → · Palette generator →

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