#7158E8#7158E8

#7158E8 is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 56.6% C 0.208 H 285.6°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#7158E8
RGBrgb(113, 88, 232)
HSLhsl(250, 76%, 63%)
HSVhsv(250, 62%, 91%)
CMYKcmyk(51.3%, 62.1%, 0%, 9%)
CIE-LABlab(47.39, 46.55, -69.80)
CIE-LCHlch(47.39, 83.90, 303.70°)
OKLaboklab(56.61% 0.0559 -0.2001)
OKLCHoklch(56.61% 0.208 285.6)
XYZxyz(24.8609, 16.3151, 78.1674)
Luminance0.1632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7158E8 #CFE858
analogous
#5887E8 #7158E8 #B958E8
triadic
#7158E8 #E87158 #58E871
tetradic
#7158E8 #E85887 #CFE858 #58E8B9
square
#7158E8 #E85887 #CFE858 #58E8B9
split-complementary
#7158E8 #E8B958 #87E858
monochromatic
#3218AE #4322E1 #7158E8 #9F8EEF #CCC4F7

Accessibility & contrast

On white

4.93
#7158E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#7158E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7158E8
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7158E8#FFFFFF#000000##FFFFFF
##7158E81.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074ED
Deuteranopia (green-blind)
#006CE5
Tritanopia (blue-blind)
#437B98
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7158e8;
/* rgb */ color: rgb(113, 88, 232);
/* oklch */ color: oklch(56.6% 0.208 285.6);
Tailwind
colors: {
  custom: {
    50: '#a388f0',
    500: '#7158e8',
    950: '#000000',
  },
}
SCSS
$custom: #7158e8;
$custom-light: #a388f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7158e8",
  "rgb": {
    "r": 113,
    "g": 88,
    "b": 232
  },
  "hsl": {
    "h": 250.417,
    "s": 75.789,
    "l": 62.745
  },
  "oklch": {
    "l": 0.56608,
    "c": 0.2078,
    "h": 285.6
  },
  "luminance": 0.16316
}

Semantic roles & 50–950 ramp

primary
#7158E8
secondary
#DFE8B4
accent
#D80EB5
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7158E8

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

Preview Lab → · Contrast checker → · Palette generator →

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