#7157E8#7157E8

#7157E8 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.5% C 0.209 H 285.8°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7157E8
RGBrgb(113, 87, 232)
HSLhsl(251, 76%, 63%)
HSVhsv(251, 63%, 91%)
CMYKcmyk(51.3%, 62.5%, 0%, 9%)
CIE-LABlab(47.17, 47.12, -70.14)
CIE-LCHlch(47.17, 84.50, 303.89°)
OKLaboklab(56.45% 0.0569 -0.2011)
OKLCHoklch(56.45% 0.209 285.8)
XYZxyz(24.7794, 16.1520, 78.1403)
Luminance0.1615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7157E8 #CEE857
analogous
#5785E8 #7157E8 #BA57E8
triadic
#7157E8 #E87157 #57E871
tetradic
#7157E8 #E85785 #CEE857 #57E8BA
square
#7157E8 #E85785 #CEE857 #57E8BA
split-complementary
#7157E8 #E8BA57 #85E857
monochromatic
#3218AD #4421E1 #7157E8 #9F8DEF #CCC3F7

Accessibility & contrast

On white

4.96
#7157E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7157E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7157E8
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7157E8#FFFFFF#000000##FFFFFF
##7157E81.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074ED
Deuteranopia (green-blind)
#006CE5
Tritanopia (blue-blind)
#437A98
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7157e8;
/* rgb */ color: rgb(113, 87, 232);
/* oklch */ color: oklch(56.5% 0.209 285.8);
Tailwind
colors: {
  custom: {
    50: '#a388f0',
    500: '#7157e8',
    950: '#000000',
  },
}
SCSS
$custom: #7157e8;
$custom-light: #a388f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7157e8",
  "rgb": {
    "r": 113,
    "g": 87,
    "b": 232
  },
  "hsl": {
    "h": 250.759,
    "s": 75.916,
    "l": 62.549
  },
  "oklch": {
    "l": 0.56453,
    "c": 0.20904,
    "h": 285.8
  },
  "luminance": 0.16153
}

Semantic roles & 50–950 ramp

primary
#7157E8
secondary
#DEE8B3
accent
#D80DB4
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7157E8

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

Preview Lab → · Contrast checker → · Palette generator →

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