#7F56E8#7F56E8

#7F56E8 is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.5% C 0.210 H 291.3°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#7F56E8
RGBrgb(127, 86, 232)
HSLhsl(257, 76%, 62%)
HSVhsv(257, 63%, 91%)
CMYKcmyk(45.3%, 62.9%, 0%, 9%)
CIE-LABlab(48.25, 50.28, -68.33)
CIE-LCHlch(48.25, 84.84, 306.35°)
OKLaboklab(57.54% 0.0762 -0.1954)
OKLCHoklch(57.54% 0.21 291.3)
XYZxyz(26.6416, 16.9929, 78.2045)
Luminance0.1699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F56E8 #BFE856
analogous
#5676E8 #7F56E8 #C856E8
triadic
#7F56E8 #E87F56 #56E87F
tetradic
#7F56E8 #E85676 #BFE856 #56E8C8
square
#7F56E8 #E85676 #BFE856 #56E8C8
split-complementary
#7F56E8 #E8C856 #76E856
monochromatic
#4117AC #5620E1 #7F56E8 #A88CEF #D1C2F7

Accessibility & contrast

On white

4.77
#7F56E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#7F56E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F56E8
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F56E8#FFFFFF#000000##FFFFFF
##7F56E81.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075ED
Deuteranopia (green-blind)
#006FE5
Tritanopia (blue-blind)
#5F7897
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7f56e8;
/* rgb */ color: rgb(127, 86, 232);
/* oklch */ color: oklch(57.5% 0.210 291.3);
Tailwind
colors: {
  custom: {
    50: '#ab88f0',
    500: '#7f56e8',
    950: '#000000',
  },
}
SCSS
$custom: #7f56e8;
$custom-light: #ab88f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f56e8",
  "rgb": {
    "r": 127,
    "g": 86,
    "b": 232
  },
  "hsl": {
    "h": 256.849,
    "s": 76.042,
    "l": 62.353
  },
  "oklch": {
    "l": 0.57544,
    "c": 0.20973,
    "h": 291.3
  },
  "luminance": 0.16994
}

Semantic roles & 50–950 ramp

primary
#7F56E8
secondary
#D9E8B2
accent
#D80D9F
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F56E8

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

Preview Lab → · Contrast checker → · Palette generator →

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