#7951DF#7951DF

#7951DF is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 55.6% C 0.205 H 291.2°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#7951DF
RGBrgb(121, 81, 223)
HSLhsl(257, 69%, 60%)
HSVhsv(257, 64%, 87%)
CMYKcmyk(45.7%, 63.7%, 0%, 12.5%)
CIE-LABlab(46.01, 49.37, -66.90)
CIE-LCHlch(46.01, 83.15, 306.42°)
OKLaboklab(55.58% 0.0742 -0.1914)
OKLCHoklch(55.58% 0.205 291.2)
XYZxyz(24.1431, 15.2767, 71.4743)
Luminance0.1528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7951DF #B7DF51
analogous
#5170DF #7951DF #C051DF
triadic
#7951DF #DF7951 #51DF79
tetradic
#7951DF #DF5170 #B7DF51 #51DFC0
square
#7951DF #DF5170 #B7DF51 #51DFC0
split-complementary
#7951DF #DFC051 #70DF51
monochromatic
#3F1C99 #5526CD #7951DF #A185E9 #C9B8F2

Accessibility & contrast

On white

5.18
#7951DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#7951DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7951DF
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7951DF#FFFFFF#000000##FFFFFF
##7951DF1.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE3
Deuteranopia (green-blind)
#006ADC
Tritanopia (blue-blind)
#5A7391
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7951df;
/* rgb */ color: rgb(121, 81, 223);
/* oklch */ color: oklch(55.6% 0.205 291.2);
Tailwind
colors: {
  custom: {
    50: '#a784ea',
    500: '#7951df',
    950: '#000000',
  },
}
SCSS
$custom: #7951df;
$custom-light: #a784ea;
$custom-dark: #000000;
JSON
{
  "hex": "#7951df",
  "rgb": {
    "r": 121,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 256.901,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.55579,
    "c": 0.20528,
    "h": 291.2
  },
  "luminance": 0.15278
}

Semantic roles & 50–950 ramp

primary
#7951DF
secondary
#D2E1AA
accent
#EC3CBA
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7951DF

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

Preview Lab → · Contrast checker → · Palette generator →

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