#7956FD#7956FD

#7956FD is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.6% C 0.235 H 286.3°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7956FD
RGBrgb(121, 86, 253)
HSLhsl(253, 98%, 66%)
HSVhsv(253, 66%, 99%)
CMYKcmyk(52.2%, 66%, 0%, 0.8%)
CIE-LABlab(49.27, 55.05, -78.46)
CIE-LCHlch(49.27, 95.85, 305.05°)
OKLaboklab(58.64% 0.0659 -0.2253)
OKLCHoklch(58.64% 0.235 286.3)
XYZxyz(28.9373, 17.8109, 94.8225)
Luminance0.1781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7956FD #DAFD56
analogous
#5687FD #7956FD #CD56FD
triadic
#7956FD #FD7956 #56FD79
tetradic
#7956FD #FD5687 #DAFD56 #56FDCD
square
#7956FD #FD5687 #DAFD56 #56FDCD
split-complementary
#7956FD #FDCD56 #87FD56
monochromatic
#2F03D6 #491AFC #7956FD #A992FE #D9CFFE

Accessibility & contrast

On white

4.60
#7956FD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#7956FD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7956FD
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7956FD#FFFFFF#000000##FFFFFF
##7956FD1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079FF
Deuteranopia (green-blind)
#0070FA
Tritanopia (blue-blind)
#4480A2
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7956fd;
/* rgb */ color: rgb(121, 86, 253);
/* oklch */ color: oklch(58.6% 0.235 286.3);
Tailwind
colors: {
  custom: {
    50: '#aa88ff',
    500: '#7956fd',
    950: '#000000',
  },
}
SCSS
$custom: #7956fd;
$custom-light: #aa88ff;
$custom-dark: #000000;
JSON
{
  "hex": "#7956fd",
  "rgb": {
    "r": 121,
    "g": 86,
    "b": 253
  },
  "hsl": {
    "h": 252.575,
    "s": 97.661,
    "l": 66.471
  },
  "oklch": {
    "l": 0.58635,
    "c": 0.2348,
    "h": 286.3
  },
  "luminance": 0.17812
}

Semantic roles & 50–950 ramp

primary
#7956FD
secondary
#E7F2BC
accent
#E600B5
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B18
muted
#807C86

Preview Lab

Preview with #7956FD

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

Preview Lab → · Contrast checker → · Palette generator →

#7956FD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva