#7157BB#7157BB

#7157BB is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.2% C 0.151 H 292.5°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#7157BB
RGBrgb(113, 87, 187)
HSLhsl(256, 42%, 54%)
HSVhsv(256, 53%, 73%)
CMYKcmyk(39.6%, 53.5%, 0%, 26.7%)
CIE-LABlab(44.11, 34.21, -49.29)
CIE-LCHlch(44.11, 60.00, 304.76°)
OKLaboklab(53.23% 0.0579 -0.1398)
OKLCHoklch(53.23% 0.151 292.5)
XYZxyz(19.1855, 13.9145, 48.6790)
Luminance0.1391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7157BB #A1BB57
analogous
#576FBB #7157BB #A357BB
triadic
#7157BB #BB7157 #57BB71
tetradic
#7157BB #BB576F #A1BB57 #57BBA3
square
#7157BB #BB576F #A1BB57 #57BBA3
split-complementary
#7157BB #BBA357 #6FBB57
monochromatic
#3C2C6C #553D97 #7157BB #9683CD #BBAEDE

Accessibility & contrast

On white

5.55
#7157BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#7157BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7157BB
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7157BB#FFFFFF#000000##FFFFFF
##7157BB1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B6ABE
Deuteranopia (green-blind)
#3066B9
Tritanopia (blue-blind)
#5E6C81
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7157bb;
/* rgb */ color: rgb(113, 87, 187);
/* oklch */ color: oklch(53.2% 0.151 292.5);
Tailwind
colors: {
  custom: {
    50: '#9e87d0',
    500: '#7157bb',
    950: '#000000',
  },
}
SCSS
$custom: #7157bb;
$custom-light: #9e87d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7157bb",
  "rgb": {
    "r": 113,
    "g": 87,
    "b": 187
  },
  "hsl": {
    "h": 255.6,
    "s": 42.373,
    "l": 53.725
  },
  "oklch": {
    "l": 0.5323,
    "c": 0.15134,
    "h": 292.5
  },
  "luminance": 0.13915
}

Semantic roles & 50–950 ramp

primary
#7157BB
secondary
#C1CCA2
accent
#D256B2
background
#FAF8FC
surface
#F3EFF9
border
#CDCAD2
text
#0F0B14
muted
#7F7C82

Preview Lab

Preview with #7157BB

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

Preview Lab → · Contrast checker → · Palette generator →

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