#7157E7#7157E7

#7157E7 is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.4% C 0.208 H 285.9°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7157E7
RGBrgb(113, 87, 231)
HSLhsl(251, 75%, 62%)
HSVhsv(251, 62%, 91%)
CMYKcmyk(51.1%, 62.3%, 0%, 9.4%)
CIE-LABlab(47.10, 46.82, -69.70)
CIE-LCHlch(47.10, 83.97, 303.89°)
OKLaboklab(56.38% 0.057 -0.1998)
OKLCHoklch(56.38% 0.208 285.9)
XYZxyz(24.6378, 16.0954, 77.3943)
Luminance0.1610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7157E7 #CDE757
analogous
#5785E7 #7157E7 #B957E7
triadic
#7157E7 #E77157 #57E771
tetradic
#7157E7 #E75785 #CDE757 #57E7B9
square
#7157E7 #E75785 #CDE757 #57E7B9
split-complementary
#7157E7 #E7B957 #85E757
monochromatic
#3318AB #4421DF #7157E7 #9E8DEF #CCC2F6

Accessibility & contrast

On white

4.98
#7157E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7157E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7157E7
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7157E7#FFFFFF#000000##FFFFFF
##7157E71.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EC
Deuteranopia (green-blind)
#006BE4
Tritanopia (blue-blind)
#447A97
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7157e7;
/* rgb */ color: rgb(113, 87, 231);
/* oklch */ color: oklch(56.4% 0.208 285.9);
Tailwind
colors: {
  custom: {
    50: '#a388f0',
    500: '#7157e7',
    950: '#000000',
  },
}
SCSS
$custom: #7157e7;
$custom-light: #a388f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7157e7",
  "rgb": {
    "r": 113,
    "g": 87,
    "b": 231
  },
  "hsl": {
    "h": 250.833,
    "s": 75,
    "l": 62.353
  },
  "oklch": {
    "l": 0.56376,
    "c": 0.2078,
    "h": 285.9
  },
  "luminance": 0.16097
}

Semantic roles & 50–950 ramp

primary
#7157E7
secondary
#DEE7B3
accent
#D70EB3
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7157E7

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

Preview Lab → · Contrast checker → · Palette generator →

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