#7F56DD#7F56DD

#7F56DD is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.7% C 0.196 H 293.1°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#7F56DD
RGBrgb(127, 86, 221)
HSLhsl(258, 67%, 60%)
HSVhsv(258, 61%, 87%)
CMYKcmyk(42.5%, 61.1%, 0%, 13.3%)
CIE-LABlab(47.48, 47.29, -63.36)
CIE-LCHlch(47.48, 79.06, 306.74°)
OKLaboklab(56.74% 0.077 -0.1808)
OKLCHoklch(56.74% 0.196 293.1)
XYZxyz(25.1278, 16.3874, 70.2317)
Luminance0.1639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F56DD #B4DD56
analogous
#5671DD #7F56DD #C256DD
triadic
#7F56DD #DD7F56 #56DD7F
tetradic
#7F56DD #DD5671 #B4DD56 #56DDC2
square
#7F56DD #DD5671 #B4DD56 #56DDC2
split-complementary
#7F56DD #DDC256 #71DD56
monochromatic
#441F9A #5B29CD #7F56DD #A689E7 #CCBCF2

Accessibility & contrast

On white

4.91
#7F56DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#7F56DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F56DD
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F56DD#FFFFFF#000000##FFFFFF
##7F56DD1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E1
Deuteranopia (green-blind)
#006EDA
Tritanopia (blue-blind)
#657591
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f56dd;
/* rgb */ color: rgb(127, 86, 221);
/* oklch */ color: oklch(56.7% 0.196 293.1);
Tailwind
colors: {
  custom: {
    50: '#aa87e8',
    500: '#7f56dd',
    950: '#000000',
  },
}
SCSS
$custom: #7f56dd;
$custom-light: #aa87e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f56dd",
  "rgb": {
    "r": 127,
    "g": 86,
    "b": 221
  },
  "hsl": {
    "h": 258.222,
    "s": 66.502,
    "l": 60.196
  },
  "oklch": {
    "l": 0.56739,
    "c": 0.19649,
    "h": 293.1
  },
  "luminance": 0.16388
}

Semantic roles & 50–950 ramp

primary
#7F56DD
secondary
#D2E1AE
accent
#CE1797
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F56DD

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

Preview Lab → · Contrast checker → · Palette generator →

#7F56DD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva