#7158EC#7158EC

#7158EC is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 56.9% C 0.213 H 285.2°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7158EC
RGBrgb(113, 88, 236)
HSLhsl(250, 80%, 64%)
HSVhsv(250, 63%, 93%)
CMYKcmyk(52.1%, 62.7%, 0%, 7.5%)
CIE-LABlab(47.68, 47.72, -71.57)
CIE-LCHlch(47.68, 86.02, 303.69°)
OKLaboklab(56.92% 0.0556 -0.2053)
OKLCHoklch(56.92% 0.213 285.2)
XYZxyz(25.4356, 16.5449, 81.1938)
Luminance0.1655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7158EC #D3EC58
analogous
#5889EC #7158EC #BB58EC
triadic
#7158EC #EC7158 #58EC71
tetradic
#7158EC #EC5889 #D3EC58 #58ECBB
square
#7158EC #EC5889 #D3EC58 #58ECBB
split-complementary
#7158EC #ECBB58 #89EC58
monochromatic
#3015B5 #4221E6 #7158EC #A08FF2 #CEC6F9

Accessibility & contrast

On white

4.87
#7158EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7158EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7158EC
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7158EC#FFFFFF#000000##FFFFFF
##7158EC1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F1
Deuteranopia (green-blind)
#006DE9
Tritanopia (blue-blind)
#3F7C9A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7158ec;
/* rgb */ color: rgb(113, 88, 236);
/* oklch */ color: oklch(56.9% 0.213 285.2);
Tailwind
colors: {
  custom: {
    50: '#a488f3',
    500: '#7158ec',
    950: '#000000',
  },
}
SCSS
$custom: #7158ec;
$custom-light: #a488f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7158ec",
  "rgb": {
    "r": 113,
    "g": 88,
    "b": 236
  },
  "hsl": {
    "h": 250.135,
    "s": 79.57,
    "l": 63.529
  },
  "oklch": {
    "l": 0.56916,
    "c": 0.21273,
    "h": 285.2
  },
  "luminance": 0.16546
}

Semantic roles & 50–950 ramp

primary
#7158EC
secondary
#E1EAB6
accent
#DC0AB8
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7158EC

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

Preview Lab → · Contrast checker → · Palette generator →

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