#7F56CC#7F56CC

#7F56CC is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.6% C 0.176 H 296.2°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#7F56CC
RGBrgb(127, 86, 204)
HSLhsl(261, 54%, 57%)
HSVhsv(261, 58%, 80%)
CMYKcmyk(37.7%, 57.8%, 0%, 20%)
CIE-LABlab(46.35, 42.73, -55.47)
CIE-LCHlch(46.35, 70.02, 307.61°)
OKLaboklab(55.55% 0.0776 -0.1576)
OKLCHoklch(55.55% 0.176 296.2)
XYZxyz(22.9765, 15.5268, 58.9015)
Luminance0.1553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F56CC #A3CC56
analogous
#5668CC #7F56CC #BA56CC
triadic
#7F56CC #CC7F56 #56CC7F
tetradic
#7F56CC #CC5668 #A3CC56 #56CCBA
square
#7F56CC #CC5668 #A3CC56 #56CCBA
split-complementary
#7F56CC #CCBA56 #68CC56
monochromatic
#462781 #6035B0 #7F56CC #A385DA #C6B4E8

Accessibility & contrast

On white

5.12
#7F56CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F56CC
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F56CC#FFFFFF#000000##FFFFFF
##7F56CC1.005.124.115.12
#FFFFFF5.121.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#136ED0
Deuteranopia (green-blind)
#276CC9
Tritanopia (blue-blind)
#6C6F89
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7f56cc;
/* rgb */ color: rgb(127, 86, 204);
/* oklch */ color: oklch(55.6% 0.176 296.2);
Tailwind
colors: {
  custom: {
    50: '#a987dc',
    500: '#7f56cc',
    950: '#000000',
  },
}
SCSS
$custom: #7f56cc;
$custom-light: #a987dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f56cc",
  "rgb": {
    "r": 127,
    "g": 86,
    "b": 204
  },
  "hsl": {
    "h": 260.847,
    "s": 53.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.55552,
    "c": 0.17565,
    "h": 296.2
  },
  "luminance": 0.15527
}

Semantic roles & 50–950 ramp

primary
#7F56CC
secondary
#C6D7A7
accent
#DD4BAA
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7F56CC

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

Preview Lab → · Contrast checker → · Palette generator →

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