#7F56CD#7F56CD

#7F56CD is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.6% C 0.177 H 296.0°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#7F56CD
RGBrgb(127, 86, 205)
HSLhsl(261, 54%, 57%)
HSVhsv(261, 58%, 80%)
CMYKcmyk(38%, 58%, 0%, 19.6%)
CIE-LABlab(46.41, 43.00, -55.94)
CIE-LCHlch(46.41, 70.55, 307.55°)
OKLaboklab(55.62% 0.0776 -0.1589)
OKLCHoklch(55.62% 0.177 296)
XYZxyz(23.0968, 15.5750, 59.5352)
Luminance0.1557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F56CD #A4CD56
analogous
#5669CD #7F56CD #BA56CD
triadic
#7F56CD #CD7F56 #56CD7F
tetradic
#7F56CD #CD5669 #A4CD56 #56CDBA
square
#7F56CD #CD5669 #A4CD56 #56CDBA
split-complementary
#7F56CD #CDBA56 #69CD56
monochromatic
#462682 #5F34B1 #7F56CD #A385DB #C7B4E9

Accessibility & contrast

On white

5.10
#7F56CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#7F56CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F56CD
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F56CD#FFFFFF#000000##FFFFFF
##7F56CD1.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#106FD1
Deuteranopia (green-blind)
#256CCA
Tritanopia (blue-blind)
#6C6F89
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7f56cd;
/* rgb */ color: rgb(127, 86, 205);
/* oklch */ color: oklch(55.6% 0.177 296.0);
Tailwind
colors: {
  custom: {
    50: '#a987dd',
    500: '#7f56cd',
    950: '#000000',
  },
}
SCSS
$custom: #7f56cd;
$custom-light: #a987dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f56cd",
  "rgb": {
    "r": 127,
    "g": 86,
    "b": 205
  },
  "hsl": {
    "h": 260.672,
    "s": 54.338,
    "l": 57.059
  },
  "oklch": {
    "l": 0.5562,
    "c": 0.17689,
    "h": 296
  },
  "luminance": 0.15575
}

Semantic roles & 50–950 ramp

primary
#7F56CD
secondary
#C7D8A7
accent
#DE4AAB
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7F56CD

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

Preview Lab → · Contrast checker → · Palette generator →

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