#7158DC#7158DC

#7158DC is a mid, vivid violet. Relative luminance 0.157; OKLCH L 55.7% C 0.193 H 287.1°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#7158DC
RGBrgb(113, 88, 220)
HSLhsl(251, 65%, 60%)
HSVhsv(251, 60%, 86%)
CMYKcmyk(48.6%, 60%, 0%, 13.7%)
CIE-LABlab(46.52, 43.06, -64.40)
CIE-LCHlch(46.52, 77.47, 303.76°)
OKLaboklab(55.7% 0.0567 -0.1843)
OKLCHoklch(55.7% 0.193 287.1)
XYZxyz(23.2143, 15.6564, 69.4951)
Luminance0.1566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7158DC #C3DC58
analogous
#5881DC #7158DC #B358DC
triadic
#7158DC #DC7158 #58DC71
tetradic
#7158DC #DC5881 #C3DC58 #58DCB3
square
#7158DC #DC5881 #C3DC58 #58DCB3
split-complementary
#7158DC #DCB358 #81DC58
monochromatic
#372099 #492BCC #7158DC #9C8BE7 #C7BDF1

Accessibility & contrast

On white

5.08
#7158DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#7158DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7158DC
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7158DC#FFFFFF#000000##FFFFFF
##7158DC1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E0
Deuteranopia (green-blind)
#006BD9
Tritanopia (blue-blind)
#4C7792
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7158dc;
/* rgb */ color: rgb(113, 88, 220);
/* oklch */ color: oklch(55.7% 0.193 287.1);
Tailwind
colors: {
  custom: {
    50: '#a288e8',
    500: '#7158dc',
    950: '#000000',
  },
}
SCSS
$custom: #7158dc;
$custom-light: #a288e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7158dc",
  "rgb": {
    "r": 113,
    "g": 88,
    "b": 220
  },
  "hsl": {
    "h": 251.364,
    "s": 65.347,
    "l": 60.392
  },
  "oklch": {
    "l": 0.55704,
    "c": 0.19279,
    "h": 287.1
  },
  "luminance": 0.15657
}

Semantic roles & 50–950 ramp

primary
#7158DC
secondary
#D8E1AF
accent
#CD18AB
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7158DC

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

Preview Lab → · Contrast checker → · Palette generator →

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