#7951EE#7951EE

#7951EE is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.7% C 0.223 H 289.0°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7951EE
RGBrgb(121, 81, 238)
HSLhsl(255, 82%, 63%)
HSVhsv(255, 66%, 93%)
CMYKcmyk(49.2%, 66%, 0%, 6.7%)
CIE-LABlab(47.13, 53.51, -73.55)
CIE-LCHlch(47.13, 90.96, 306.03°)
OKLaboklab(56.74% 0.0725 -0.2109)
OKLCHoklch(56.74% 0.223 289)
XYZxyz(26.2557, 16.1217, 82.6007)
Luminance0.1612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7951EE #C6EE51
analogous
#5177EE #7951EE #C851EE
triadic
#7951EE #EE7951 #51EE79
tetradic
#7951EE #EE5177 #C6EE51 #51EEC8
square
#7951EE #EE5177 #C6EE51 #51EEC8
split-complementary
#7951EE #EEC851 #77EE51
monochromatic
#3B11B3 #4E19E9 #7951EE #A489F3 #CFC1F9

Accessibility & contrast

On white

4.97
#7951EE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7951EE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7951EE
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7951EE#FFFFFF#000000##FFFFFF
##7951EE1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F3
Deuteranopia (green-blind)
#006CEB
Tritanopia (blue-blind)
#507899
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7951ee;
/* rgb */ color: rgb(121, 81, 238);
/* oklch */ color: oklch(56.7% 0.223 289.0);
Tailwind
colors: {
  custom: {
    50: '#a984f5',
    500: '#7951ee',
    950: '#000000',
  },
}
SCSS
$custom: #7951ee;
$custom-light: #a984f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7951ee",
  "rgb": {
    "r": 121,
    "g": 81,
    "b": 238
  },
  "hsl": {
    "h": 255.287,
    "s": 82.199,
    "l": 62.549
  },
  "oklch": {
    "l": 0.5674,
    "c": 0.22304,
    "h": 289
  },
  "luminance": 0.16123
}

Semantic roles & 50–950 ramp

primary
#7951EE
secondary
#DBEAB1
accent
#DF07A8
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7951EE

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

Preview Lab → · Contrast checker → · Palette generator →

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