#7157EC#7157EC

#7157EC is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 56.8% C 0.214 H 285.3°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#7157EC
RGBrgb(113, 87, 236)
HSLhsl(250, 80%, 63%)
HSVhsv(250, 63%, 93%)
CMYKcmyk(52.1%, 63.1%, 0%, 7.5%)
CIE-LABlab(47.47, 48.28, -71.91)
CIE-LCHlch(47.47, 86.61, 303.88°)
OKLaboklab(56.76% 0.0566 -0.2063)
OKLCHoklch(56.76% 0.214 285.3)
XYZxyz(25.3540, 16.3819, 81.1667)
Luminance0.1638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7157EC #D2EC57
analogous
#5787EC #7157EC #BB57EC
triadic
#7157EC #EC7157 #57EC71
tetradic
#7157EC #EC5787 #D2EC57 #57ECBB
square
#7157EC #EC5787 #D2EC57 #57ECBB
split-complementary
#7157EC #ECBB57 #87EC57
monochromatic
#3014B4 #4320E6 #7157EC #9F8EF2 #CEC5F8

Accessibility & contrast

On white

4.91
#7157EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#7157EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7157EC
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7157EC#FFFFFF#000000##FFFFFF
##7157EC1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F1
Deuteranopia (green-blind)
#006CE9
Tritanopia (blue-blind)
#3F7B9A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7157ec;
/* rgb */ color: rgb(113, 87, 236);
/* oklch */ color: oklch(56.8% 0.214 285.3);
Tailwind
colors: {
  custom: {
    50: '#a488f3',
    500: '#7157ec',
    950: '#000000',
  },
}
SCSS
$custom: #7157ec;
$custom-light: #a488f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7157ec",
  "rgb": {
    "r": 113,
    "g": 87,
    "b": 236
  },
  "hsl": {
    "h": 250.47,
    "s": 79.679,
    "l": 63.333
  },
  "oklch": {
    "l": 0.56764,
    "c": 0.21395,
    "h": 285.3
  },
  "luminance": 0.16383
}

Semantic roles & 50–950 ramp

primary
#7157EC
secondary
#E1EAB5
accent
#DC0AB7
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7157EC

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

Preview Lab → · Contrast checker → · Palette generator →

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