#7951DB#7951DB

#7951DB is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.3% C 0.200 H 291.9°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#7951DB
RGBrgb(121, 81, 219)
HSLhsl(257, 66%, 59%)
HSVhsv(257, 63%, 86%)
CMYKcmyk(44.7%, 63%, 0%, 14.1%)
CIE-LABlab(45.72, 48.27, -65.10)
CIE-LCHlch(45.72, 81.04, 306.56°)
OKLaboklab(55.28% 0.0746 -0.1861)
OKLCHoklch(55.28% 0.2 291.9)
XYZxyz(23.6102, 15.0635, 68.6677)
Luminance0.1506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7951DB #B3DB51
analogous
#516EDB #7951DB #BE51DB
triadic
#7951DB #DB7951 #51DB79
tetradic
#7951DB #DB516E #B3DB51 #51DBBE
square
#7951DB #DB516E #B3DB51 #51DBBE
split-complementary
#7951DB #DBBE51 #6EDB51
monochromatic
#401E93 #5629C6 #7951DB #A084E5 #C7B6F0

Accessibility & contrast

On white

5.23
#7951DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#7951DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7951DB
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7951DB#FFFFFF#000000##FFFFFF
##7951DB1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDF
Deuteranopia (green-blind)
#0069D8
Tritanopia (blue-blind)
#5C718F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7951db;
/* rgb */ color: rgb(121, 81, 219);
/* oklch */ color: oklch(55.3% 0.200 291.9);
Tailwind
colors: {
  custom: {
    50: '#a784e7',
    500: '#7951db',
    950: '#000000',
  },
}
SCSS
$custom: #7951db;
$custom-light: #a784e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7951db",
  "rgb": {
    "r": 121,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 257.391,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.55277,
    "c": 0.20047,
    "h": 291.9
  },
  "luminance": 0.15064
}

Semantic roles & 50–950 ramp

primary
#7951DB
secondary
#CFDFA9
accent
#E93FB8
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7951DB

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

Preview Lab → · Contrast checker → · Palette generator →

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