#7157EF#7157EF

#7157EF is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.0% C 0.218 H 285.0°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7157EF
RGBrgb(113, 87, 239)
HSLhsl(250, 83%, 64%)
HSVhsv(250, 64%, 94%)
CMYKcmyk(52.7%, 63.6%, 0%, 6.3%)
CIE-LABlab(47.70, 49.15, -73.23)
CIE-LCHlch(47.70, 88.20, 303.87°)
OKLaboklab(57% 0.0563 -0.2102)
OKLCHoklch(57% 0.218 285)
XYZxyz(25.7935, 16.5577, 83.4814)
Luminance0.1656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7157EF #D5EF57
analogous
#5789EF #7157EF #BD57EF
triadic
#7157EF #EF7157 #57EF71
tetradic
#7157EF #EF5789 #D5EF57 #57EFBD
square
#7157EF #EF5789 #D5EF57 #57EFBD
split-complementary
#7157EF #EFBD57 #89EF57
monochromatic
#2E12BA #421FEA #7157EF #A08FF4 #CFC7FA

Accessibility & contrast

On white

4.87
#7157EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7157EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7157EF
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7157EF#FFFFFF#000000##FFFFFF
##7157EF1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F4
Deuteranopia (green-blind)
#006CEC
Tritanopia (blue-blind)
#3C7C9B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7157ef;
/* rgb */ color: rgb(113, 87, 239);
/* oklch */ color: oklch(57.0% 0.218 285.0);
Tailwind
colors: {
  custom: {
    50: '#a488f5',
    500: '#7157ef',
    950: '#000000',
  },
}
SCSS
$custom: #7157ef;
$custom-light: #a488f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7157ef",
  "rgb": {
    "r": 113,
    "g": 87,
    "b": 239
  },
  "hsl": {
    "h": 250.263,
    "s": 82.609,
    "l": 63.922
  },
  "oklch": {
    "l": 0.56998,
    "c": 0.21762,
    "h": 285
  },
  "luminance": 0.16559
}

Semantic roles & 50–950 ramp

primary
#7157EF
secondary
#E2ECB6
accent
#DF06BA
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7157EF

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

Preview Lab → · Contrast checker → · Palette generator →

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