#7157BD#7157BD

#7157BD is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.4% C 0.154 H 292.1°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#7157BD
RGBrgb(113, 87, 189)
HSLhsl(255, 44%, 54%)
HSVhsv(255, 54%, 74%)
CMYKcmyk(40.2%, 54%, 0%, 25.9%)
CIE-LABlab(44.23, 34.77, -50.26)
CIE-LCHlch(44.23, 61.11, 304.67°)
OKLaboklab(53.36% 0.058 -0.1427)
OKLCHoklch(53.36% 0.154 292.1)
XYZxyz(19.4011, 14.0007, 49.8145)
Luminance0.1400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7157BD #A3BD57
analogous
#5770BD #7157BD #A457BD
triadic
#7157BD #BD7157 #57BD71
tetradic
#7157BD #BD5770 #A3BD57 #57BDA4
square
#7157BD #BD5770 #A3BD57 #57BDA4
split-complementary
#7157BD #BDA457 #70BD57
monochromatic
#3C2B6E #543D9A #7157BD #9683CE #BBAFE0

Accessibility & contrast

On white

5.53
#7157BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#7157BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7157BD
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7157BD#FFFFFF#000000##FFFFFF
##7157BD1.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#286AC0
Deuteranopia (green-blind)
#2D67BB
Tritanopia (blue-blind)
#5D6C81
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7157bd;
/* rgb */ color: rgb(113, 87, 189);
/* oklch */ color: oklch(53.4% 0.154 292.1);
Tailwind
colors: {
  custom: {
    50: '#9e87d1',
    500: '#7157bd',
    950: '#000000',
  },
}
SCSS
$custom: #7157bd;
$custom-light: #9e87d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7157bd",
  "rgb": {
    "r": 113,
    "g": 87,
    "b": 189
  },
  "hsl": {
    "h": 255.294,
    "s": 43.59,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53362,
    "c": 0.154,
    "h": 292.1
  },
  "luminance": 0.14001
}

Semantic roles & 50–950 ramp

primary
#7157BD
secondary
#C3CEA2
accent
#D354B3
background
#FAF8FC
surface
#F3EFF9
border
#CDCAD2
text
#0F0B14
muted
#7F7C82

Preview Lab

Preview with #7157BD

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

Preview Lab → · Contrast checker → · Palette generator →

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