#7951D2#7951D2

#7951D2 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.6% C 0.190 H 293.4°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#7951D2
RGBrgb(121, 81, 210)
HSLhsl(259, 59%, 57%)
HSVhsv(259, 61%, 82%)
CMYKcmyk(42.4%, 61.4%, 0%, 17.6%)
CIE-LABlab(45.08, 45.81, -60.98)
CIE-LCHlch(45.08, 76.27, 306.92°)
OKLaboklab(54.61% 0.0753 -0.174)
OKLCHoklch(54.61% 0.19 293.4)
XYZxyz(22.4573, 14.6023, 62.5956)
Luminance0.1460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7951D2 #AAD251
analogous
#5169D2 #7951D2 #BA51D2
triadic
#7951D2 #D27951 #51D279
tetradic
#7951D2 #D25169 #AAD251 #51D2BA
square
#7951D2 #D25169 #AAD251 #51D2BA
split-complementary
#7951D2 #D2BA51 #69D251
monochromatic
#412386 #592FB7 #7951D2 #9E82DF #C4B2EB

Accessibility & contrast

On white

5.36
#7951D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#7951D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7951D2
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7951D2#FFFFFF#000000##FFFFFF
##7951D21.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD6
Deuteranopia (green-blind)
#0068CF
Tritanopia (blue-blind)
#616E8A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7951d2;
/* rgb */ color: rgb(121, 81, 210);
/* oklch */ color: oklch(54.6% 0.190 293.4);
Tailwind
colors: {
  custom: {
    50: '#a684e1',
    500: '#7951d2',
    950: '#000000',
  },
}
SCSS
$custom: #7951d2;
$custom-light: #a684e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7951d2",
  "rgb": {
    "r": 121,
    "g": 81,
    "b": 210
  },
  "hsl": {
    "h": 258.605,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.54614,
    "c": 0.18955,
    "h": 293.4
  },
  "luminance": 0.14603
}

Semantic roles & 50–950 ramp

primary
#7951D2
secondary
#C9DAA5
accent
#E246B2
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7951D2

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

Preview Lab → · Contrast checker → · Palette generator →

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