#7158DF#7158DF

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

Color values

HEX#7158DF
RGBrgb(113, 88, 223)
HSLhsl(251, 68%, 61%)
HSVhsv(251, 61%, 87%)
CMYKcmyk(49.3%, 60.5%, 0%, 12.5%)
CIE-LABlab(46.73, 43.93, -65.76)
CIE-LCHlch(46.73, 79.09, 303.74°)
OKLaboklab(55.93% 0.0565 -0.1883)
OKLCHoklch(55.93% 0.197 286.7)
XYZxyz(23.6151, 15.8168, 71.6064)
Luminance0.1582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7158DF #C6DF58
analogous
#5882DF #7158DF #B458DF
triadic
#7158DF #DF7158 #58DF71
tetradic
#7158DF #DF5882 #C6DF58 #58DFB4
square
#7158DF #DF5882 #C6DF58 #58DFB4
split-complementary
#7158DF #DFB458 #82DF58
monochromatic
#361E9E #4828D2 #7158DF #9D8BE9 #C8BFF3

Accessibility & contrast

On white

5.04
#7158DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#7158DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7158DF
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7158DF#FFFFFF#000000##FFFFFF
##7158DF1.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E3
Deuteranopia (green-blind)
#006BDC
Tritanopia (blue-blind)
#4A7893
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7158df;
/* rgb */ color: rgb(113, 88, 223);
/* oklch */ color: oklch(55.9% 0.197 286.7);
Tailwind
colors: {
  custom: {
    50: '#a288ea',
    500: '#7158df',
    950: '#000000',
  },
}
SCSS
$custom: #7158df;
$custom-light: #a288ea;
$custom-dark: #000000;
JSON
{
  "hex": "#7158df",
  "rgb": {
    "r": 113,
    "g": 88,
    "b": 223
  },
  "hsl": {
    "h": 251.111,
    "s": 67.839,
    "l": 60.98
  },
  "oklch": {
    "l": 0.55926,
    "c": 0.19657,
    "h": 286.7
  },
  "luminance": 0.15818
}

Semantic roles & 50–950 ramp

primary
#7158DF
secondary
#D9E3B0
accent
#D016AD
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7158DF

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

Preview Lab → · Contrast checker → · Palette generator →

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