#7951E2#7951E2

#7951E2 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 55.8% C 0.209 H 290.7°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#7951E2
RGBrgb(121, 81, 226)
HSLhsl(257, 71%, 60%)
HSVhsv(257, 64%, 89%)
CMYKcmyk(46.5%, 64.2%, 0%, 11.4%)
CIE-LABlab(46.23, 50.19, -68.25)
CIE-LCHlch(46.23, 84.72, 306.33°)
OKLaboklab(55.81% 0.0739 -0.1953)
OKLCHoklch(55.81% 0.209 290.7)
XYZxyz(24.5512, 15.4399, 73.6234)
Luminance0.1544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7951E2 #BAE251
analogous
#5171E2 #7951E2 #C251E2
triadic
#7951E2 #E27951 #51E279
tetradic
#7951E2 #E25171 #BAE251 #51E2C2
square
#7951E2 #E25171 #BAE251 #51E2C2
split-complementary
#7951E2 #E2C251 #71E251
monochromatic
#3F1A9E #5423D3 #7951E2 #A185EB #CABAF3

Accessibility & contrast

On white

5.14
#7951E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#7951E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7951E2
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7951E2#FFFFFF#000000##FFFFFF
##7951E21.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E7
Deuteranopia (green-blind)
#006ADF
Tritanopia (blue-blind)
#587492
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7951e2;
/* rgb */ color: rgb(121, 81, 226);
/* oklch */ color: oklch(55.8% 0.209 290.7);
Tailwind
colors: {
  custom: {
    50: '#a784ec',
    500: '#7951e2',
    950: '#000000',
  },
}
SCSS
$custom: #7951e2;
$custom-light: #a784ec;
$custom-dark: #000000;
JSON
{
  "hex": "#7951e2",
  "rgb": {
    "r": 121,
    "g": 81,
    "b": 226
  },
  "hsl": {
    "h": 256.552,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.55807,
    "c": 0.20886,
    "h": 290.7
  },
  "luminance": 0.15441
}

Semantic roles & 50–950 ramp

primary
#7951E2
secondary
#D4E3AC
accent
#D3129E
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7951E2

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

Preview Lab → · Contrast checker → · Palette generator →

#7951E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva