#7951EC#7951EC

#7951EC is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.6% C 0.221 H 289.2°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7951EC
RGBrgb(121, 81, 236)
HSLhsl(255, 80%, 62%)
HSVhsv(255, 66%, 93%)
CMYKcmyk(48.7%, 65.7%, 0%, 7.5%)
CIE-LABlab(46.98, 52.95, -72.68)
CIE-LCHlch(46.98, 89.92, 306.08°)
OKLaboklab(56.58% 0.0728 -0.2083)
OKLCHoklch(56.58% 0.221 289.2)
XYZxyz(25.9635, 16.0048, 81.0618)
Luminance0.1601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7951EC #C4EC51
analogous
#5177EC #7951EC #C751EC
triadic
#7951EC #EC7951 #51EC79
tetradic
#7951EC #EC5177 #C4EC51 #51ECC7
square
#7951EC #EC5177 #C4EC51 #51ECC7
split-complementary
#7951EC #ECC751 #77EC51
monochromatic
#3B13AF #4F1AE6 #7951EC #A388F2 #CEBFF8

Accessibility & contrast

On white

5.00
#7951EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#7951EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7951EC
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7951EC#FFFFFF#000000##FFFFFF
##7951EC1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F1
Deuteranopia (green-blind)
#006CE9
Tritanopia (blue-blind)
#527798
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7951ec;
/* rgb */ color: rgb(121, 81, 236);
/* oklch */ color: oklch(56.6% 0.221 289.2);
Tailwind
colors: {
  custom: {
    50: '#a984f3',
    500: '#7951ec',
    950: '#000000',
  },
}
SCSS
$custom: #7951ec;
$custom-light: #a984f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7951ec",
  "rgb": {
    "r": 121,
    "g": 81,
    "b": 236
  },
  "hsl": {
    "h": 255.484,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.56583,
    "c": 0.22069,
    "h": 289.2
  },
  "luminance": 0.16006
}

Semantic roles & 50–950 ramp

primary
#7951EC
secondary
#DAE9B0
accent
#DD09A6
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7951EC

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

Preview Lab → · Contrast checker → · Palette generator →

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