#7F56ED#7F56ED

#7F56ED is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 57.9% C 0.216 H 290.6°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#7F56ED
RGBrgb(127, 86, 237)
HSLhsl(256, 81%, 63%)
HSVhsv(256, 64%, 93%)
CMYKcmyk(46.4%, 63.7%, 0%, 7.1%)
CIE-LABlab(48.61, 51.65, -70.56)
CIE-LCHlch(48.61, 87.44, 306.20°)
OKLaboklab(57.92% 0.0757 -0.2019)
OKLCHoklch(57.92% 0.216 290.6)
XYZxyz(27.3619, 17.2810, 81.9982)
Luminance0.1728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F56ED #C4ED56
analogous
#5678ED #7F56ED #CA56ED
triadic
#7F56ED #ED7F56 #56ED7F
tetradic
#7F56ED #ED5678 #C4ED56 #56EDCA
square
#7F56ED #ED5678 #C4ED56 #56EDCA
split-complementary
#7F56ED #EDCA56 #78ED56
monochromatic
#3F13B5 #551FE7 #7F56ED #A98DF3 #D3C5F9

Accessibility & contrast

On white

4.71
#7F56ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#7F56ED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F56ED
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F56ED#FFFFFF#000000##FFFFFF
##7F56ED1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F2
Deuteranopia (green-blind)
#0070EA
Tritanopia (blue-blind)
#5C7A9A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7f56ed;
/* rgb */ color: rgb(127, 86, 237);
/* oklch */ color: oklch(57.9% 0.216 290.6);
Tailwind
colors: {
  custom: {
    50: '#ac88f4',
    500: '#7f56ed',
    950: '#000000',
  },
}
SCSS
$custom: #7f56ed;
$custom-light: #ac88f4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f56ed",
  "rgb": {
    "r": 127,
    "g": 86,
    "b": 237
  },
  "hsl": {
    "h": 256.291,
    "s": 80.749,
    "l": 63.333
  },
  "oklch": {
    "l": 0.57919,
    "c": 0.21568,
    "h": 290.6
  },
  "luminance": 0.17282
}

Semantic roles & 50–950 ramp

primary
#7F56ED
secondary
#DCEAB4
accent
#DD08A3
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F56ED

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

Preview Lab → · Contrast checker → · Palette generator →

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