#7157EB#7157EB

#7157EB is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 56.7% C 0.213 H 285.4°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#7157EB
RGBrgb(113, 87, 235)
HSLhsl(251, 79%, 63%)
HSVhsv(251, 63%, 92%)
CMYKcmyk(51.9%, 63%, 0%, 7.8%)
CIE-LABlab(47.40, 47.99, -71.47)
CIE-LCHlch(47.40, 86.09, 303.88°)
OKLaboklab(56.69% 0.0566 -0.205)
OKLCHoklch(56.69% 0.213 285.4)
XYZxyz(25.2092, 16.3239, 80.4037)
Luminance0.1633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7157EB #D1EB57
analogous
#5787EB #7157EB #BB57EB
triadic
#7157EB #EB7157 #57EB71
tetradic
#7157EB #EB5787 #D1EB57 #57EBBB
square
#7157EB #EB5787 #D1EB57 #57EBBB
split-complementary
#7157EB #EBBB57 #87EB57
monochromatic
#3115B2 #4320E4 #7157EB #9F8EF2 #CDC4F8

Accessibility & contrast

On white

4.92
#7157EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#7157EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7157EB
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7157EB#FFFFFF#000000##FFFFFF
##7157EB1.004.924.264.92
#FFFFFF4.921.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F0
Deuteranopia (green-blind)
#006CE8
Tritanopia (blue-blind)
#407B99
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7157eb;
/* rgb */ color: rgb(113, 87, 235);
/* oklch */ color: oklch(56.7% 0.213 285.4);
Tailwind
colors: {
  custom: {
    50: '#a488f2',
    500: '#7157eb',
    950: '#000000',
  },
}
SCSS
$custom: #7157eb;
$custom-light: #a488f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7157eb",
  "rgb": {
    "r": 113,
    "g": 87,
    "b": 235
  },
  "hsl": {
    "h": 250.541,
    "s": 78.723,
    "l": 63.137
  },
  "oklch": {
    "l": 0.56686,
    "c": 0.21273,
    "h": 285.4
  },
  "luminance": 0.16325
}

Semantic roles & 50–950 ramp

primary
#7157EB
secondary
#E0E9B4
accent
#DB0AB6
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7157EB

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

Preview Lab → · Contrast checker → · Palette generator →

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