#7158DE#7158DE

#7158DE is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.9% C 0.195 H 286.8°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#7158DE
RGBrgb(113, 88, 222)
HSLhsl(251, 67%, 61%)
HSVhsv(251, 60%, 87%)
CMYKcmyk(49.1%, 60.4%, 0%, 12.9%)
CIE-LABlab(46.66, 43.64, -65.31)
CIE-LCHlch(46.66, 78.55, 303.75°)
OKLaboklab(55.85% 0.0566 -0.1869)
OKLCHoklch(55.85% 0.195 286.8)
XYZxyz(23.4807, 15.7630, 70.8984)
Luminance0.1576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7158DE #C5DE58
analogous
#5882DE #7158DE #B458DE
triadic
#7158DE #DE7158 #58DE71
tetradic
#7158DE #DE5882 #C5DE58 #58DEB4
square
#7158DE #DE5882 #C5DE58 #58DEB4
split-complementary
#7158DE #DEB458 #82DE58
monochromatic
#361F9D #4829D0 #7158DE #9C8BE8 #C8BEF2

Accessibility & contrast

On white

5.06
#7158DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#7158DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7158DE
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7158DE#FFFFFF#000000##FFFFFF
##7158DE1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E2
Deuteranopia (green-blind)
#006BDB
Tritanopia (blue-blind)
#4A7793
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7158de;
/* rgb */ color: rgb(113, 88, 222);
/* oklch */ color: oklch(55.9% 0.195 286.8);
Tailwind
colors: {
  custom: {
    50: '#a288e9',
    500: '#7158de',
    950: '#000000',
  },
}
SCSS
$custom: #7158de;
$custom-light: #a288e9;
$custom-dark: #000000;
JSON
{
  "hex": "#7158de",
  "rgb": {
    "r": 113,
    "g": 88,
    "b": 222
  },
  "hsl": {
    "h": 251.194,
    "s": 67,
    "l": 60.784
  },
  "oklch": {
    "l": 0.55852,
    "c": 0.19531,
    "h": 286.8
  },
  "luminance": 0.15764
}

Semantic roles & 50–950 ramp

primary
#7158DE
secondary
#D9E2B0
accent
#CF17AD
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7158DE

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

Preview Lab → · Contrast checker → · Palette generator →

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