#7C56EF#7C56EF

#7C56EF is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 57.8% C 0.218 H 289.2°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#7C56EF
RGBrgb(124, 86, 239)
HSLhsl(255, 83%, 64%)
HSVhsv(255, 64%, 94%)
CMYKcmyk(48.1%, 64%, 0%, 6.3%)
CIE-LABlab(48.48, 51.64, -71.92)
CIE-LCHlch(48.48, 88.54, 305.68°)
OKLaboklab(57.8% 0.0716 -0.206)
OKLCHoklch(57.8% 0.218 289.2)
XYZxyz(27.2155, 17.1715, 83.5251)
Luminance0.1717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C56EF #C9EF56
analogous
#567CEF #7C56EF #C856EF
triadic
#7C56EF #EF7C56 #56EF7C
tetradic
#7C56EF #EF567C #C9EF56 #56EFC8
square
#7C56EF #EF567C #C9EF56 #56EFC8
split-complementary
#7C56EF #EFC856 #7CEF56
monochromatic
#3B12B9 #511EEA #7C56EF #A78EF4 #D3C6FA

Accessibility & contrast

On white

4.74
#7C56EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#7C56EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C56EF
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C56EF#FFFFFF#000000##FFFFFF
##7C56EF1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F4
Deuteranopia (green-blind)
#006FEC
Tritanopia (blue-blind)
#557B9B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7c56ef;
/* rgb */ color: rgb(124, 86, 239);
/* oklch */ color: oklch(57.8% 0.218 289.2);
Tailwind
colors: {
  custom: {
    50: '#aa88f5',
    500: '#7c56ef',
    950: '#000000',
  },
}
SCSS
$custom: #7c56ef;
$custom-light: #aa88f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c56ef",
  "rgb": {
    "r": 124,
    "g": 86,
    "b": 239
  },
  "hsl": {
    "h": 254.902,
    "s": 82.703,
    "l": 63.725
  },
  "oklch": {
    "l": 0.57799,
    "c": 0.21811,
    "h": 289.2
  },
  "luminance": 0.17173
}

Semantic roles & 50–950 ramp

primary
#7C56EF
secondary
#DEEBB5
accent
#DF06A9
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7C56EF

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

Preview Lab → · Contrast checker → · Palette generator →

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