#7158EB#7158EB

#7158EB is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 56.8% C 0.211 H 285.3°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#7158EB
RGBrgb(113, 88, 235)
HSLhsl(250, 79%, 63%)
HSVhsv(250, 63%, 92%)
CMYKcmyk(51.9%, 62.6%, 0%, 7.8%)
CIE-LABlab(47.61, 47.43, -71.13)
CIE-LCHlch(47.61, 85.49, 303.70°)
OKLaboklab(56.84% 0.0557 -0.204)
OKLCHoklch(56.84% 0.212 285.3)
XYZxyz(25.2907, 16.4870, 80.4308)
Luminance0.1649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7158EB #D2EB58
analogous
#5888EB #7158EB #BA58EB
triadic
#7158EB #EB7158 #58EB71
tetradic
#7158EB #EB5888 #D2EB58 #58EBBA
square
#7158EB #EB5888 #D2EB58 #58EBBA
split-complementary
#7158EB #EBBA58 #88EB58
monochromatic
#3015B3 #4321E4 #7158EB #9F8FF2 #CEC5F8

Accessibility & contrast

On white

4.89
#7158EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#7158EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7158EB
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7158EB#FFFFFF#000000##FFFFFF
##7158EB1.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F0
Deuteranopia (green-blind)
#006CE8
Tritanopia (blue-blind)
#407C99
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7158eb;
/* rgb */ color: rgb(113, 88, 235);
/* oklch */ color: oklch(56.8% 0.211 285.3);
Tailwind
colors: {
  custom: {
    50: '#a388f2',
    500: '#7158eb',
    950: '#000000',
  },
}
SCSS
$custom: #7158eb;
$custom-light: #a388f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7158eb",
  "rgb": {
    "r": 113,
    "g": 88,
    "b": 235
  },
  "hsl": {
    "h": 250.204,
    "s": 78.61,
    "l": 63.333
  },
  "oklch": {
    "l": 0.56839,
    "c": 0.2115,
    "h": 285.3
  },
  "luminance": 0.16488
}

Semantic roles & 50–950 ramp

primary
#7158EB
secondary
#E1EAB5
accent
#DB0BB7
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7158EB

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

Preview Lab → · Contrast checker → · Palette generator →

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