#7158BC#7158BC

#7158BC is a mid, vivid violet. Relative luminance 0.141; OKLCH L 53.5% C 0.151 H 292.0°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#7158BC
RGBrgb(113, 88, 188)
HSLhsl(255, 43%, 54%)
HSVhsv(255, 53%, 74%)
CMYKcmyk(39.9%, 53.2%, 0%, 26.3%)
CIE-LABlab(44.41, 33.89, -49.40)
CIE-LCHlch(44.41, 59.91, 304.45°)
OKLaboklab(53.47% 0.0567 -0.1402)
OKLCHoklch(53.47% 0.151 292)
XYZxyz(19.3744, 14.1205, 49.2719)
Luminance0.1412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7158BC #A3BC58
analogous
#5871BC #7158BC #A358BC
triadic
#7158BC #BC7158 #58BC71
tetradic
#7158BC #BC5871 #A3BC58 #58BCA3
square
#7158BC #BC5871 #A3BC58 #58BCA3
split-complementary
#7158BC #BCA358 #71BC58
monochromatic
#3C2C6E #543E99 #7158BC #9684CE #BBAFDF

Accessibility & contrast

On white

5.49
#7158BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7158BC
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7158BC#FFFFFF#000000##FFFFFF
##7158BC1.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C6ABF
Deuteranopia (green-blind)
#3067BA
Tritanopia (blue-blind)
#5D6D81
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7158bc;
/* rgb */ color: rgb(113, 88, 188);
/* oklch */ color: oklch(53.5% 0.151 292.0);
Tailwind
colors: {
  custom: {
    50: '#9e88d1',
    500: '#7158bc',
    950: '#000000',
  },
}
SCSS
$custom: #7158bc;
$custom-light: #9e88d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7158bc",
  "rgb": {
    "r": 113,
    "g": 88,
    "b": 188
  },
  "hsl": {
    "h": 255,
    "s": 42.735,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53469,
    "c": 0.15118,
    "h": 292
  },
  "luminance": 0.14121
}

Semantic roles & 50–950 ramp

primary
#7158BC
secondary
#C3CDA3
accent
#D355B3
background
#FAF8FC
surface
#F3EFF9
border
#CDCAD2
text
#0F0B14
muted
#7F7C82

Preview Lab

Preview with #7158BC

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

Preview Lab → · Contrast checker → · Palette generator →

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