#7157BF#7157BF

#7157BF is a mid, vivid violet. Relative luminance 0.141; OKLCH L 53.5% C 0.157 H 291.7°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#7157BF
RGBrgb(113, 87, 191)
HSLhsl(255, 45%, 55%)
HSVhsv(255, 54%, 75%)
CMYKcmyk(40.8%, 54.5%, 0%, 25.1%)
CIE-LABlab(44.36, 35.33, -51.22)
CIE-LCHlch(44.36, 62.22, 304.60°)
OKLaboklab(53.5% 0.058 -0.1455)
OKLCHoklch(53.5% 0.157 291.7)
XYZxyz(19.6197, 14.0881, 50.9657)
Luminance0.1409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7157BF #A5BF57
analogous
#5771BF #7157BF #A557BF
triadic
#7157BF #BF7157 #57BF71
tetradic
#7157BF #BF5771 #A5BF57 #57BFA5
square
#7157BF #BF5771 #A5BF57 #57BFA5
split-complementary
#7157BF #BFA557 #71BF57
monochromatic
#3C2B71 #543C9D #7157BF #9683D0 #BCB0E1

Accessibility & contrast

On white

5.50
#7157BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#7157BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7157BF
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7157BF#FFFFFF#000000##FFFFFF
##7157BF1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#256AC3
Deuteranopia (green-blind)
#2B67BD
Tritanopia (blue-blind)
#5C6D82
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7157bf;
/* rgb */ color: rgb(113, 87, 191);
/* oklch */ color: oklch(53.5% 0.157 291.7);
Tailwind
colors: {
  custom: {
    50: '#9e87d3',
    500: '#7157bf',
    950: '#000000',
  },
}
SCSS
$custom: #7157bf;
$custom-light: #9e87d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7157bf",
  "rgb": {
    "r": 113,
    "g": 87,
    "b": 191
  },
  "hsl": {
    "h": 255,
    "s": 44.828,
    "l": 54.51
  },
  "oklch": {
    "l": 0.53495,
    "c": 0.15666,
    "h": 291.7
  },
  "luminance": 0.14089
}

Semantic roles & 50–950 ramp

primary
#7157BF
secondary
#C4CFA3
accent
#D553B4
background
#FAF8FD
surface
#F3EFFA
border
#CDCAD3
text
#0F0B14
muted
#7F7C83

Preview Lab

Preview with #7157BF

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

Preview Lab → · Contrast checker → · Palette generator →

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