#7156EC#7156EC

#7156EC is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.6% C 0.215 H 285.5°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#7156EC
RGBrgb(113, 86, 236)
HSLhsl(251, 80%, 63%)
HSVhsv(251, 64%, 93%)
CMYKcmyk(52.1%, 63.6%, 0%, 7.5%)
CIE-LABlab(47.26, 48.84, -72.25)
CIE-LCHlch(47.26, 87.21, 304.06°)
OKLaboklab(56.61% 0.0575 -0.2073)
OKLCHoklch(56.61% 0.215 285.5)
XYZxyz(25.2736, 16.2211, 81.1399)
Luminance0.1622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7156EC #D1EC56
analogous
#5686EC #7156EC #BC56EC
triadic
#7156EC #EC7156 #56EC71
tetradic
#7156EC #EC5686 #D1EC56 #56ECBC
square
#7156EC #EC5686 #D1EC56 #56ECBC
split-complementary
#7156EC #ECBC56 #86EC56
monochromatic
#3114B3 #431FE6 #7156EC #9F8DF2 #CDC4F8

Accessibility & contrast

On white

4.95
#7156EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#7156EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7156EC
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7156EC#FFFFFF#000000##FFFFFF
##7156EC1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F1
Deuteranopia (green-blind)
#006CE9
Tritanopia (blue-blind)
#3F7B99
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7156ec;
/* rgb */ color: rgb(113, 86, 236);
/* oklch */ color: oklch(56.6% 0.215 285.5);
Tailwind
colors: {
  custom: {
    50: '#a487f3',
    500: '#7156ec',
    950: '#000000',
  },
}
SCSS
$custom: #7156ec;
$custom-light: #a487f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7156ec",
  "rgb": {
    "r": 113,
    "g": 86,
    "b": 236
  },
  "hsl": {
    "h": 250.8,
    "s": 79.787,
    "l": 63.137
  },
  "oklch": {
    "l": 0.56612,
    "c": 0.21516,
    "h": 285.5
  },
  "luminance": 0.16222
}

Semantic roles & 50–950 ramp

primary
#7156EC
secondary
#E0EAB4
accent
#DC09B6
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7156EC

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

Preview Lab → · Contrast checker → · Palette generator →

#7156EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva