#7951CA#7951CA

#7951CA is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.0% C 0.180 H 294.9°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#7951CA
RGBrgb(121, 81, 202)
HSLhsl(260, 53%, 55%)
HSVhsv(260, 60%, 79%)
CMYKcmyk(40.1%, 59.9%, 0%, 20.8%)
CIE-LABlab(44.54, 43.64, -57.26)
CIE-LCHlch(44.54, 72.00, 307.31°)
OKLaboklab(54.04% 0.0757 -0.163)
OKLCHoklch(54.04% 0.18 294.9)
XYZxyz(21.4854, 14.2136, 57.4772)
Luminance0.1421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7951CA #A2CA51
analogous
#5165CA #7951CA #B651CA
triadic
#7951CA #CA7951 #51CA79
tetradic
#7951CA #CA5165 #A2CA51 #51CAB6
square
#7951CA #CA5165 #A2CA51 #51CAB6
split-complementary
#7951CA #CAB651 #65CA51
monochromatic
#42257B #5B34AA #7951CA #9D80D8 #C1AFE7

Accessibility & contrast

On white

5.46
#7951CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#7951CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7951CA
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7951CA#FFFFFF#000000##FFFFFF
##7951CA1.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACE
Deuteranopia (green-blind)
#1367C7
Tritanopia (blue-blind)
#646C86
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7951ca;
/* rgb */ color: rgb(121, 81, 202);
/* oklch */ color: oklch(54.0% 0.180 294.9);
Tailwind
colors: {
  custom: {
    50: '#a583db',
    500: '#7951ca',
    950: '#000000',
  },
}
SCSS
$custom: #7951ca;
$custom-light: #a583db;
$custom-dark: #000000;
JSON
{
  "hex": "#7951ca",
  "rgb": {
    "r": 121,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 259.835,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.54042,
    "c": 0.17975,
    "h": 294.9
  },
  "luminance": 0.14214
}

Semantic roles & 50–950 ramp

primary
#7951CA
secondary
#C4D5A2
accent
#DD4BAD
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7951CA

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

Preview Lab → · Contrast checker → · Palette generator →

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