#7951F2#7951F2

#7951F2 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.1% C 0.228 H 288.4°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#7951F2
RGBrgb(121, 81, 242)
HSLhsl(255, 86%, 63%)
HSVhsv(255, 67%, 95%)
CMYKcmyk(50%, 66.5%, 0%, 5.1%)
CIE-LABlab(47.44, 54.61, -75.30)
CIE-LCHlch(47.44, 93.02, 305.95°)
OKLaboklab(57.06% 0.0719 -0.216)
OKLCHoklch(57.06% 0.228 288.4)
XYZxyz(26.8499, 16.3594, 85.7301)
Luminance0.1636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7951F2 #CAF251
analogous
#5179F2 #7951F2 #C951F2
triadic
#7951F2 #F27951 #51F279
tetradic
#7951F2 #F25179 #CAF251 #51F2C9
square
#7951F2 #F25179 #CAF251 #51F2C9
split-complementary
#7951F2 #F2C951 #79F251
monochromatic
#390EBB #4D18EE #7951F2 #A58AF6 #D1C3FB

Accessibility & contrast

On white

4.92
#7951F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#7951F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7951F2
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7951F2#FFFFFF#000000##FFFFFF
##7951F21.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F7
Deuteranopia (green-blind)
#006CEF
Tritanopia (blue-blind)
#4D799B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7951f2;
/* rgb */ color: rgb(121, 81, 242);
/* oklch */ color: oklch(57.1% 0.228 288.4);
Tailwind
colors: {
  custom: {
    50: '#a984f7',
    500: '#7951f2',
    950: '#000000',
  },
}
SCSS
$custom: #7951f2;
$custom-light: #a984f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7951f2",
  "rgb": {
    "r": 121,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 254.907,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.57058,
    "c": 0.22771,
    "h": 288.4
  },
  "luminance": 0.16361
}

Semantic roles & 50–950 ramp

primary
#7951F2
secondary
#DEECB3
accent
#E303AB
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7951F2

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

Preview Lab → · Contrast checker → · Palette generator →

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