#7951F6#7951F6

#7951F6 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.4% C 0.232 H 287.9°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#7951F6
RGBrgb(121, 81, 246)
HSLhsl(255, 90%, 64%)
HSVhsv(255, 67%, 96%)
CMYKcmyk(50.8%, 67.1%, 0%, 3.5%)
CIE-LABlab(47.76, 55.72, -77.03)
CIE-LCHlch(47.76, 95.07, 305.88°)
OKLaboklab(57.38% 0.0714 -0.2211)
OKLCHoklch(57.38% 0.232 287.9)
XYZxyz(27.4573, 16.6023, 88.9287)
Luminance0.1660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7951F6 #CEF651
analogous
#517CF6 #7951F6 #CB51F6
triadic
#7951F6 #F67951 #51F679
tetradic
#7951F6 #F6517C #CEF651 #51F6CB
square
#7951F6 #F6517C #CEF651 #51F6CB
split-complementary
#7951F6 #F6CB51 #7CF651
monochromatic
#370AC3 #4C17F3 #7951F6 #A68BF9 #D3C5FC

Accessibility & contrast

On white

4.86
#7951F6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#7951F6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7951F6
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7951F6#FFFFFF#000000##FFFFFF
##7951F61.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075FB
Deuteranopia (green-blind)
#006DF3
Tritanopia (blue-blind)
#4A7B9D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7951f6;
/* rgb */ color: rgb(121, 81, 246);
/* oklch */ color: oklch(57.4% 0.232 287.9);
Tailwind
colors: {
  custom: {
    50: '#aa85fa',
    500: '#7951f6',
    950: '#000000',
  },
}
SCSS
$custom: #7951f6;
$custom-light: #aa85fa;
$custom-dark: #000000;
JSON
{
  "hex": "#7951f6",
  "rgb": {
    "r": 121,
    "g": 81,
    "b": 246
  },
  "hsl": {
    "h": 254.545,
    "s": 90.164,
    "l": 64.118
  },
  "oklch": {
    "l": 0.5738,
    "c": 0.23236,
    "h": 287.9
  },
  "luminance": 0.16604
}

Semantic roles & 50–950 ramp

primary
#7951F6
secondary
#E0EEB5
accent
#E600AE
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7951F6

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

Preview Lab → · Contrast checker → · Palette generator →

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