#7951BF#7951BF

#7951BF is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.3% C 0.166 H 297.2°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#7951BF
RGBrgb(121, 81, 191)
HSLhsl(262, 46%, 53%)
HSVhsv(262, 58%, 75%)
CMYKcmyk(36.6%, 57.6%, 0%, 25.1%)
CIE-LABlab(43.82, 40.70, -52.05)
CIE-LCHlch(43.82, 66.07, 308.02°)
OKLaboklab(53.28% 0.0759 -0.1477)
OKLCHoklch(53.28% 0.166 297.2)
XYZxyz(20.2292, 13.7111, 50.8608)
Luminance0.1371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7951BF #97BF51
analogous
#5160BF #7951BF #B051BF
triadic
#7951BF #BF7951 #51BF79
tetradic
#7951BF #BF5160 #97BF51 #51BFB0
square
#7951BF #BF5160 #97BF51 #51BFB0
split-complementary
#7951BF #BFB051 #60BF51
monochromatic
#41286D #5C399A #7951BF #9B7ECF #BEAAE0

Accessibility & contrast

On white

5.61
#7951BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#7951BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7951BF
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7951BF#FFFFFF#000000##FFFFFF
##7951BF1.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1868C3
Deuteranopia (green-blind)
#2966BD
Tritanopia (blue-blind)
#696880
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7951bf;
/* rgb */ color: rgb(121, 81, 191);
/* oklch */ color: oklch(53.3% 0.166 297.2);
Tailwind
colors: {
  custom: {
    50: '#a483d3',
    500: '#7951bf',
    950: '#000000',
  },
}
SCSS
$custom: #7951bf;
$custom-light: #a483d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7951bf",
  "rgb": {
    "r": 121,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 261.818,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.53282,
    "c": 0.16608,
    "h": 297.2
  },
  "luminance": 0.13711
}

Semantic roles & 50–950 ramp

primary
#7951BF
secondary
#BCCE9E
accent
#D652A6
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #7951BF

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

Preview Lab → · Contrast checker → · Palette generator →

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