#7158BB#7158BB

#7158BB is a mid, vivid violet. Relative luminance 0.141; OKLCH L 53.4% C 0.150 H 292.2°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#7158BB
RGBrgb(113, 88, 187)
HSLhsl(255, 42%, 54%)
HSVhsv(255, 53%, 73%)
CMYKcmyk(39.6%, 52.9%, 0%, 26.7%)
CIE-LABlab(44.34, 33.61, -48.92)
CIE-LCHlch(44.34, 59.35, 304.50°)
OKLaboklab(53.4% 0.0566 -0.1387)
OKLCHoklch(53.4% 0.15 292.2)
XYZxyz(19.2670, 14.0775, 48.7062)
Luminance0.1408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7158BB #A2BB58
analogous
#5871BB #7158BB #A358BB
triadic
#7158BB #BB7158 #58BB71
tetradic
#7158BB #BB5871 #A2BB58 #58BBA3
square
#7158BB #BB5871 #A2BB58 #58BBA3
split-complementary
#7158BB #BBA358 #71BB58
monochromatic
#3C2C6C #553E98 #7158BB #9683CD #BBAFDE

Accessibility & contrast

On white

5.50
#7158BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#7158BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7158BB
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7158BB#FFFFFF#000000##FFFFFF
##7158BB1.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)
#2D6ABE
Deuteranopia (green-blind)
#3267B9
Tritanopia (blue-blind)
#5E6C81
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7158bb;
/* rgb */ color: rgb(113, 88, 187);
/* oklch */ color: oklch(53.4% 0.150 292.2);
Tailwind
colors: {
  custom: {
    50: '#9e88d0',
    500: '#7158bb',
    950: '#000000',
  },
}
SCSS
$custom: #7158bb;
$custom-light: #9e88d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7158bb",
  "rgb": {
    "r": 113,
    "g": 88,
    "b": 187
  },
  "hsl": {
    "h": 255.152,
    "s": 42.128,
    "l": 53.922
  },
  "oklch": {
    "l": 0.53404,
    "c": 0.14984,
    "h": 292.2
  },
  "luminance": 0.14078
}

Semantic roles & 50–950 ramp

primary
#7158BB
secondary
#C2CDA2
accent
#D256B3
background
#FAF8FC
surface
#F3EFF9
border
#CDCAD2
text
#0F0B14
muted
#7F7C82

Preview Lab

Preview with #7158BB

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

Preview Lab → · Contrast checker → · Palette generator →

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