#7951C8#7951C8

#7951C8 is a mid, vivid violet. Relative luminance 0.141; OKLCH L 53.9% C 0.177 H 295.3°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#7951C8
RGBrgb(121, 81, 200)
HSLhsl(260, 52%, 55%)
HSVhsv(260, 60%, 78%)
CMYKcmyk(39.5%, 59.5%, 0%, 21.6%)
CIE-LABlab(44.40, 43.11, -56.32)
CIE-LCHlch(44.40, 70.93, 307.43°)
OKLaboklab(53.9% 0.0758 -0.1603)
OKLCHoklch(53.9% 0.177 295.3)
XYZxyz(21.2502, 14.1195, 56.2381)
Luminance0.1412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7951C8 #A0C851
analogous
#5165C8 #7951C8 #B451C8
triadic
#7951C8 #C87951 #51C879
tetradic
#7951C8 #C85165 #A0C851 #51C8B4
square
#7951C8 #C85165 #A0C851 #51C8B4
split-complementary
#7951C8 #C8B451 #65C851
monochromatic
#422679 #5B35A7 #7951C8 #9D80D7 #C1AEE5

Accessibility & contrast

On white

5.49
#7951C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#7951C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7951C8
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7951C8#FFFFFF#000000##FFFFFF
##7951C81.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACC
Deuteranopia (green-blind)
#1867C5
Tritanopia (blue-blind)
#656B85
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7951c8;
/* rgb */ color: rgb(121, 81, 200);
/* oklch */ color: oklch(53.9% 0.177 295.3);
Tailwind
colors: {
  custom: {
    50: '#a583d9',
    500: '#7951c8',
    950: '#000000',
  },
}
SCSS
$custom: #7951c8;
$custom-light: #a583d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7951c8",
  "rgb": {
    "r": 121,
    "g": 81,
    "b": 200
  },
  "hsl": {
    "h": 260.168,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.53901,
    "c": 0.17727,
    "h": 295.3
  },
  "luminance": 0.1412
}

Semantic roles & 50–950 ramp

primary
#7951C8
secondary
#C3D3A1
accent
#DB4CAB
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7951C8

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

Preview Lab → · Contrast checker → · Palette generator →

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