#7957F2#7957F2

#7957F2 is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 57.9% C 0.221 H 287.5°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#7957F2
RGBrgb(121, 87, 242)
HSLhsl(253, 86%, 65%)
HSVhsv(253, 64%, 95%)
CMYKcmyk(50%, 64%, 0%, 5.1%)
CIE-LABlab(48.62, 51.41, -73.37)
CIE-LCHlch(48.62, 89.59, 305.02°)
OKLaboklab(57.91% 0.0664 -0.2104)
OKLCHoklch(57.91% 0.221 287.5)
XYZxyz(27.3157, 17.2909, 85.8854)
Luminance0.1729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7957F2 #D0F257
analogous
#5783F2 #7957F2 #C657F2
triadic
#7957F2 #F27957 #57F279
tetradic
#7957F2 #F25783 #D0F257 #57F2C6
square
#7957F2 #F25783 #D0F257 #57F2C6
split-complementary
#7957F2 #F2C657 #83F257
monochromatic
#360FC0 #4C1EEE #7957F2 #A690F6 #D4C9FB

Accessibility & contrast

On white

4.71
#7957F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#7957F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7957F2
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7957F2#FFFFFF#000000##FFFFFF
##7957F21.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F7
Deuteranopia (green-blind)
#006FEF
Tritanopia (blue-blind)
#4D7D9D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7957f2;
/* rgb */ color: rgb(121, 87, 242);
/* oklch */ color: oklch(57.9% 0.221 287.5);
Tailwind
colors: {
  custom: {
    50: '#a988f7',
    500: '#7957f2',
    950: '#000000',
  },
}
SCSS
$custom: #7957f2;
$custom-light: #a988f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7957f2",
  "rgb": {
    "r": 121,
    "g": 87,
    "b": 242
  },
  "hsl": {
    "h": 253.161,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.57911,
    "c": 0.2206,
    "h": 287.5
  },
  "luminance": 0.17292
}

Semantic roles & 50–950 ramp

primary
#7957F2
secondary
#E1EDB8
accent
#E203B1
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7957F2

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

Preview Lab → · Contrast checker → · Palette generator →

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