#7158BD#7158BD

#7158BD is a mid, vivid violet. Relative luminance 0.142; OKLCH L 53.5% C 0.153 H 291.8°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#7158BD
RGBrgb(113, 88, 189)
HSLhsl(255, 43%, 54%)
HSVhsv(255, 53%, 74%)
CMYKcmyk(40.2%, 53.4%, 0%, 25.9%)
CIE-LABlab(44.47, 34.18, -49.88)
CIE-LCHlch(44.47, 60.47, 304.42°)
OKLaboklab(53.54% 0.0567 -0.1416)
OKLCHoklch(53.54% 0.153 291.8)
XYZxyz(19.4826, 14.1637, 49.8416)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7158BD #A4BD58
analogous
#5872BD #7158BD #A358BD
triadic
#7158BD #BD7158 #58BD71
tetradic
#7158BD #BD5872 #A4BD58 #58BDA3
square
#7158BD #BD5872 #A4BD58 #58BDA3
split-complementary
#7158BD #BDA358 #72BD58
monochromatic
#3C2C6F #543D9B #7158BD #9684CE #BCB0E0

Accessibility & contrast

On white

5.48
#7158BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#7158BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7158BD
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7158BD#FFFFFF#000000##FFFFFF
##7158BD1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A6BC0
Deuteranopia (green-blind)
#2F67BB
Tritanopia (blue-blind)
#5D6D82
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7158bd;
/* rgb */ color: rgb(113, 88, 189);
/* oklch */ color: oklch(53.5% 0.153 291.8);
Tailwind
colors: {
  custom: {
    50: '#9e88d1',
    500: '#7158bd',
    950: '#000000',
  },
}
SCSS
$custom: #7158bd;
$custom-light: #9e88d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7158bd",
  "rgb": {
    "r": 113,
    "g": 88,
    "b": 189
  },
  "hsl": {
    "h": 254.851,
    "s": 43.348,
    "l": 54.314
  },
  "oklch": {
    "l": 0.53535,
    "c": 0.15252,
    "h": 291.8
  },
  "luminance": 0.14164
}

Semantic roles & 50–950 ramp

primary
#7158BD
secondary
#C3CEA3
accent
#D355B4
background
#FAF8FC
surface
#F3EFF9
border
#CDCAD2
text
#0F0B14
muted
#7F7C82

Preview Lab

Preview with #7158BD

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

Preview Lab → · Contrast checker → · Palette generator →

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