#7951CD#7951CD

#7951CD is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.3% C 0.183 H 294.3°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#7951CD
RGBrgb(121, 81, 205)
HSLhsl(259, 55%, 56%)
HSVhsv(259, 60%, 80%)
CMYKcmyk(41%, 60.5%, 0%, 19.6%)
CIE-LABlab(44.74, 44.45, -58.66)
CIE-LCHlch(44.74, 73.60, 307.15°)
OKLaboklab(54.25% 0.0756 -0.1671)
OKLCHoklch(54.25% 0.183 294.3)
XYZxyz(21.8441, 14.3571, 59.3661)
Luminance0.1436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7951CD #A5CD51
analogous
#5167CD #7951CD #B751CD
triadic
#7951CD #CD7951 #51CD79
tetradic
#7951CD #CD5167 #A5CD51 #51CDB7
square
#7951CD #CD5167 #A5CD51 #51CDB7
split-complementary
#7951CD #CDB751 #67CD51
monochromatic
#42257F #5A32AF #7951CD #9E81DB #C2B0E8

Accessibility & contrast

On white

5.42
#7951CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#7951CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7951CD
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7951CD#FFFFFF#000000##FFFFFF
##7951CD1.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#0668CA
Tritanopia (blue-blind)
#636D87
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7951cd;
/* rgb */ color: rgb(121, 81, 205);
/* oklch */ color: oklch(54.3% 0.183 294.3);
Tailwind
colors: {
  custom: {
    50: '#a584dd',
    500: '#7951cd',
    950: '#000000',
  },
}
SCSS
$custom: #7951cd;
$custom-light: #a584dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7951cd",
  "rgb": {
    "r": 121,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 259.355,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54254,
    "c": 0.18344,
    "h": 294.3
  },
  "luminance": 0.14358
}

Semantic roles & 50–950 ramp

primary
#7951CD
secondary
#C6D7A3
accent
#DF49AE
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7951CD

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

Preview Lab → · Contrast checker → · Palette generator →

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