#7951CF#7951CF

#7951CF is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.4% C 0.186 H 294.0°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#7951CF
RGBrgb(121, 81, 207)
HSLhsl(259, 57%, 56%)
HSVhsv(259, 61%, 81%)
CMYKcmyk(41.5%, 60.9%, 0%, 18.8%)
CIE-LABlab(44.88, 45.00, -59.59)
CIE-LCHlch(44.88, 74.67, 307.06°)
OKLaboklab(54.4% 0.0755 -0.1699)
OKLCHoklch(54.4% 0.186 294)
XYZxyz(22.0871, 14.4542, 60.6456)
Luminance0.1446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7951CF #A7CF51
analogous
#5168CF #7951CF #B851CF
triadic
#7951CF #CF7951 #51CF79
tetradic
#7951CF #CF5168 #A7CF51 #51CFB8
square
#7951CF #CF5168 #A7CF51 #51CFB8
split-complementary
#7951CF #CFB851 #68CF51
monochromatic
#422482 #5A31B2 #7951CF #9E81DC #C3B1E9

Accessibility & contrast

On white

5.40
#7951CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#7951CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7951CF
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7951CF#FFFFFF#000000##FFFFFF
##7951CF1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD3
Deuteranopia (green-blind)
#0068CC
Tritanopia (blue-blind)
#626D88
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7951cf;
/* rgb */ color: rgb(121, 81, 207);
/* oklch */ color: oklch(54.4% 0.186 294.0);
Tailwind
colors: {
  custom: {
    50: '#a584de',
    500: '#7951cf',
    950: '#000000',
  },
}
SCSS
$custom: #7951cf;
$custom-light: #a584de;
$custom-dark: #000000;
JSON
{
  "hex": "#7951cf",
  "rgb": {
    "r": 121,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 259.048,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.54397,
    "c": 0.18589,
    "h": 294
  },
  "luminance": 0.14455
}

Semantic roles & 50–950 ramp

primary
#7951CF
secondary
#C7D8A4
accent
#E048B0
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7951CF

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

Preview Lab → · Contrast checker → · Palette generator →

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