#7957F0#7957F0

#7957F0 is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 57.8% C 0.218 H 287.8°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#7957F0
RGBrgb(121, 87, 240)
HSLhsl(253, 84%, 64%)
HSVhsv(253, 64%, 94%)
CMYKcmyk(49.6%, 63.7%, 0%, 5.9%)
CIE-LABlab(48.48, 50.84, -72.49)
CIE-LCHlch(48.48, 88.54, 305.04°)
OKLaboklab(57.76% 0.0666 -0.2078)
OKLCHoklch(57.76% 0.218 287.8)
XYZxyz(27.0169, 17.1714, 84.3120)
Luminance0.1717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7957F0 #CEF057
analogous
#5782F0 #7957F0 #C557F0
triadic
#7957F0 #F07957 #57F079
tetradic
#7957F0 #F05782 #CEF057 #57F0C5
square
#7957F0 #F05782 #CEF057 #57F0C5
split-complementary
#7957F0 #F0C557 #82F057
monochromatic
#3711BC #4C1FEB #7957F0 #A68FF5 #D3C7FA

Accessibility & contrast

On white

4.74
#7957F0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#7957F0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7957F0
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7957F0#FFFFFF#000000##FFFFFF
##7957F01.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F5
Deuteranopia (green-blind)
#006FED
Tritanopia (blue-blind)
#4E7C9C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7957f0;
/* rgb */ color: rgb(121, 87, 240);
/* oklch */ color: oklch(57.8% 0.218 287.8);
Tailwind
colors: {
  custom: {
    50: '#a988f6',
    500: '#7957f0',
    950: '#000000',
  },
}
SCSS
$custom: #7957f0;
$custom-light: #a988f6;
$custom-dark: #000000;
JSON
{
  "hex": "#7957f0",
  "rgb": {
    "r": 121,
    "g": 87,
    "b": 240
  },
  "hsl": {
    "h": 253.333,
    "s": 83.607,
    "l": 64.118
  },
  "oklch": {
    "l": 0.57756,
    "c": 0.21821,
    "h": 287.8
  },
  "luminance": 0.17173
}

Semantic roles & 50–950 ramp

primary
#7957F0
secondary
#E0ECB7
accent
#E005AF
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7957F0

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

Preview Lab → · Contrast checker → · Palette generator →

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