#7158EE#7158EE

#7158EE is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.1% C 0.215 H 284.9°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#7158EE
RGBrgb(113, 88, 238)
HSLhsl(250, 82%, 64%)
HSVhsv(250, 63%, 93%)
CMYKcmyk(52.5%, 63%, 0%, 6.7%)
CIE-LABlab(47.83, 48.30, -72.45)
CIE-LCHlch(47.83, 87.08, 303.69°)
OKLaboklab(57.07% 0.0554 -0.2079)
OKLCHoklch(57.07% 0.215 284.9)
XYZxyz(25.7277, 16.6618, 82.7327)
Luminance0.1666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7158EE #D5EE58
analogous
#588AEE #7158EE #BC58EE
triadic
#7158EE #EE7158 #58EE71
tetradic
#7158EE #EE588A #D5EE58 #58EEBC
square
#7158EE #EE588A #D5EE58 #58EEBC
split-complementary
#7158EE #EEBC58 #8AEE58
monochromatic
#2E13B9 #4220E8 #7158EE #A090F4 #CFC7F9

Accessibility & contrast

On white

4.85
#7158EE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#7158EE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7158EE
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7158EE#FFFFFF#000000##FFFFFF
##7158EE1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F3
Deuteranopia (green-blind)
#006DEB
Tritanopia (blue-blind)
#3D7D9B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7158ee;
/* rgb */ color: rgb(113, 88, 238);
/* oklch */ color: oklch(57.1% 0.215 284.9);
Tailwind
colors: {
  custom: {
    50: '#a488f5',
    500: '#7158ee',
    950: '#000000',
  },
}
SCSS
$custom: #7158ee;
$custom-light: #a488f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7158ee",
  "rgb": {
    "r": 113,
    "g": 88,
    "b": 238
  },
  "hsl": {
    "h": 250,
    "s": 81.522,
    "l": 63.922
  },
  "oklch": {
    "l": 0.57072,
    "c": 0.21519,
    "h": 284.9
  },
  "luminance": 0.16663
}

Semantic roles & 50–950 ramp

primary
#7158EE
secondary
#E2EBB7
accent
#DE08BA
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7158EE

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

Preview Lab → · Contrast checker → · Palette generator →

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