#7158E6#7158E6

#7158E6 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.5% C 0.205 H 285.9°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#7158E6
RGBrgb(113, 88, 230)
HSLhsl(251, 74%, 62%)
HSVhsv(251, 62%, 90%)
CMYKcmyk(50.9%, 61.7%, 0%, 9.8%)
CIE-LABlab(47.24, 45.97, -68.91)
CIE-LCHlch(47.24, 82.83, 303.71°)
OKLaboklab(56.46% 0.0561 -0.1975)
OKLCHoklch(56.46% 0.205 285.9)
XYZxyz(24.5785, 16.2021, 76.6798)
Luminance0.1620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7158E6 #CDE658
analogous
#5886E6 #7158E6 #B858E6
triadic
#7158E6 #E67158 #58E671
tetradic
#7158E6 #E65886 #CDE658 #58E6B8
square
#7158E6 #E65886 #CDE658 #58E6B8
split-complementary
#7158E6 #E6B858 #86E658
monochromatic
#3319AA #4423DE #7158E6 #9E8DEE #CCC2F6

Accessibility & contrast

On white

4.95
#7158E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#7158E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7158E6
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7158E6#FFFFFF#000000##FFFFFF
##7158E61.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EB
Deuteranopia (green-blind)
#006CE3
Tritanopia (blue-blind)
#447A97
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7158e6;
/* rgb */ color: rgb(113, 88, 230);
/* oklch */ color: oklch(56.5% 0.205 285.9);
Tailwind
colors: {
  custom: {
    50: '#a388ef',
    500: '#7158e6',
    950: '#000000',
  },
}
SCSS
$custom: #7158e6;
$custom-light: #a388ef;
$custom-dark: #000000;
JSON
{
  "hex": "#7158e6",
  "rgb": {
    "r": 113,
    "g": 88,
    "b": 230
  },
  "hsl": {
    "h": 250.563,
    "s": 73.958,
    "l": 62.353
  },
  "oklch": {
    "l": 0.56455,
    "c": 0.20532,
    "h": 285.9
  },
  "luminance": 0.16203
}

Semantic roles & 50–950 ramp

primary
#7158E6
secondary
#DEE7B3
accent
#D60FB3
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7158E6

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

Preview Lab → · Contrast checker → · Palette generator →

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