#7157EA#7157EA

#7157EA is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 56.6% C 0.211 H 285.6°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#7157EA
RGBrgb(113, 87, 234)
HSLhsl(251, 78%, 63%)
HSVhsv(251, 63%, 92%)
CMYKcmyk(51.7%, 62.8%, 0%, 8.2%)
CIE-LABlab(47.32, 47.70, -71.03)
CIE-LCHlch(47.32, 85.56, 303.88°)
OKLaboklab(56.61% 0.0567 -0.2037)
OKLCHoklch(56.61% 0.212 285.6)
XYZxyz(25.0651, 16.2663, 79.6449)
Luminance0.1627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7157EA #D0EA57
analogous
#5786EA #7157EA #BA57EA
triadic
#7157EA #EA7157 #57EA71
tetradic
#7157EA #EA5786 #D0EA57 #57EABA
square
#7157EA #EA5786 #D0EA57 #57EABA
split-complementary
#7157EA #EABA57 #86EA57
monochromatic
#3116B1 #4321E3 #7157EA #9F8DF1 #CDC4F8

Accessibility & contrast

On white

4.94
#7157EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#7157EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7157EA
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7157EA#FFFFFF#000000##FFFFFF
##7157EA1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EF
Deuteranopia (green-blind)
#006CE7
Tritanopia (blue-blind)
#417B99
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7157ea;
/* rgb */ color: rgb(113, 87, 234);
/* oklch */ color: oklch(56.6% 0.211 285.6);
Tailwind
colors: {
  custom: {
    50: '#a388f2',
    500: '#7157ea',
    950: '#000000',
  },
}
SCSS
$custom: #7157ea;
$custom-light: #a388f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7157ea",
  "rgb": {
    "r": 113,
    "g": 87,
    "b": 234
  },
  "hsl": {
    "h": 250.612,
    "s": 77.778,
    "l": 62.941
  },
  "oklch": {
    "l": 0.56608,
    "c": 0.2115,
    "h": 285.6
  },
  "luminance": 0.16268
}

Semantic roles & 50–950 ramp

primary
#7157EA
secondary
#DFE9B4
accent
#DA0BB5
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7157EA

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

Preview Lab → · Contrast checker → · Palette generator →

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