#7957EF#7957EF

#7957EF is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 57.7% C 0.217 H 287.9°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#7957EF
RGBrgb(121, 87, 239)
HSLhsl(253, 83%, 64%)
HSVhsv(253, 64%, 94%)
CMYKcmyk(49.4%, 63.6%, 0%, 6.3%)
CIE-LABlab(48.40, 50.56, -72.05)
CIE-LCHlch(48.40, 88.02, 305.06°)
OKLaboklab(57.68% 0.0667 -0.2065)
OKLCHoklch(57.68% 0.217 287.9)
XYZxyz(26.8688, 17.1121, 83.5318)
Luminance0.1711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7957EF #CDEF57
analogous
#5781EF #7957EF #C557EF
triadic
#7957EF #EF7957 #57EF79
tetradic
#7957EF #EF5781 #CDEF57 #57EFC5
square
#7957EF #EF5781 #CDEF57 #57EFC5
split-complementary
#7957EF #EFC557 #81EF57
monochromatic
#3712BA #4C1FEA #7957EF #A68FF4 #D2C7FA

Accessibility & contrast

On white

4.75
#7957EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#7957EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7957EF
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7957EF#FFFFFF#000000##FFFFFF
##7957EF1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F4
Deuteranopia (green-blind)
#006FEC
Tritanopia (blue-blind)
#4F7C9B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7957ef;
/* rgb */ color: rgb(121, 87, 239);
/* oklch */ color: oklch(57.7% 0.217 287.9);
Tailwind
colors: {
  custom: {
    50: '#a988f5',
    500: '#7957ef',
    950: '#000000',
  },
}
SCSS
$custom: #7957ef;
$custom-light: #a988f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7957ef",
  "rgb": {
    "r": 121,
    "g": 87,
    "b": 239
  },
  "hsl": {
    "h": 253.421,
    "s": 82.609,
    "l": 63.922
  },
  "oklch": {
    "l": 0.57679,
    "c": 0.21701,
    "h": 287.9
  },
  "luminance": 0.17113
}

Semantic roles & 50–950 ramp

primary
#7957EF
secondary
#E0ECB6
accent
#DF06AF
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7957EF

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

Preview Lab → · Contrast checker → · Palette generator →

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