#7951CB#7951CB

#7951CB is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.1% C 0.181 H 294.7°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#7951CB
RGBrgb(121, 81, 203)
HSLhsl(260, 54%, 56%)
HSVhsv(260, 60%, 80%)
CMYKcmyk(40.4%, 60.1%, 0%, 20.4%)
CIE-LABlab(44.61, 43.91, -57.73)
CIE-LCHlch(44.61, 72.53, 307.26°)
OKLaboklab(54.11% 0.0757 -0.1644)
OKLCHoklch(54.11% 0.181 294.7)
XYZxyz(21.6042, 14.2611, 58.1027)
Luminance0.1426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7951CB #A3CB51
analogous
#5166CB #7951CB #B651CB
triadic
#7951CB #CB7951 #51CB79
tetradic
#7951CB #CB5166 #A3CB51 #51CBB6
square
#7951CB #CB5166 #A3CB51 #51CBB6
split-complementary
#7951CB #CBB651 #66CB51
monochromatic
#42257C #5B33AC #7951CB #9D80D9 #C2AFE7

Accessibility & contrast

On white

5.45
#7951CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#7951CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7951CB
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7951CB#FFFFFF#000000##FFFFFF
##7951CB1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#0F68C8
Tritanopia (blue-blind)
#646C86
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7951cb;
/* rgb */ color: rgb(121, 81, 203);
/* oklch */ color: oklch(54.1% 0.181 294.7);
Tailwind
colors: {
  custom: {
    50: '#a583dc',
    500: '#7951cb',
    950: '#000000',
  },
}
SCSS
$custom: #7951cb;
$custom-light: #a583dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7951cb",
  "rgb": {
    "r": 121,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 259.672,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54112,
    "c": 0.18097,
    "h": 294.7
  },
  "luminance": 0.14262
}

Semantic roles & 50–950 ramp

primary
#7951CB
secondary
#C5D5A3
accent
#DD4AAD
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7951CB

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

Preview Lab → · Contrast checker → · Palette generator →

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