#7F56DF#7F56DF

#7F56DF is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.9% C 0.199 H 292.7°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#7F56DF
RGBrgb(127, 86, 223)
HSLhsl(258, 68%, 61%)
HSVhsv(258, 61%, 87%)
CMYKcmyk(43%, 61.4%, 0%, 12.5%)
CIE-LABlab(47.62, 47.83, -64.27)
CIE-LCHlch(47.62, 80.12, 306.66°)
OKLaboklab(56.88% 0.0769 -0.1834)
OKLCHoklch(56.88% 0.199 292.7)
XYZxyz(25.3958, 16.4946, 71.6434)
Luminance0.1650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F56DF #B6DF56
analogous
#5671DF #7F56DF #C356DF
triadic
#7F56DF #DF7F56 #56DF7F
tetradic
#7F56DF #DF5671 #B6DF56 #56DFC3
square
#7F56DF #DF5671 #B6DF56 #56DFC3
split-complementary
#7F56DF #DFC356 #71DF56
monochromatic
#441E9D #5A27D0 #7F56DF #A689E9 #CDBDF2

Accessibility & contrast

On white

4.88
#7F56DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#7F56DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F56DF
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F56DF#FFFFFF#000000##FFFFFF
##7F56DF1.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E3
Deuteranopia (green-blind)
#006EDC
Tritanopia (blue-blind)
#647592
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f56df;
/* rgb */ color: rgb(127, 86, 223);
/* oklch */ color: oklch(56.9% 0.199 292.7);
Tailwind
colors: {
  custom: {
    50: '#ab87ea',
    500: '#7f56df',
    950: '#000000',
  },
}
SCSS
$custom: #7f56df;
$custom-light: #ab87ea;
$custom-dark: #000000;
JSON
{
  "hex": "#7f56df",
  "rgb": {
    "r": 127,
    "g": 86,
    "b": 223
  },
  "hsl": {
    "h": 257.956,
    "s": 68.159,
    "l": 60.588
  },
  "oklch": {
    "l": 0.56883,
    "c": 0.19892,
    "h": 292.7
  },
  "luminance": 0.16495
}

Semantic roles & 50–950 ramp

primary
#7F56DF
secondary
#D3E2AE
accent
#D01598
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F56DF

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

Preview Lab → · Contrast checker → · Palette generator →

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