#7158CF#7158CF

#7158CF is a mid, vivid violet. Relative luminance 0.150; OKLCH L 54.8% C 0.176 H 288.9°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#7158CF
RGBrgb(113, 88, 207)
HSLhsl(253, 55%, 58%)
HSVhsv(253, 57%, 81%)
CMYKcmyk(45.4%, 57.5%, 0%, 18.8%)
CIE-LABlab(45.63, 39.30, -58.42)
CIE-LCHlch(45.63, 70.41, 303.93°)
OKLaboklab(54.76% 0.0571 -0.1667)
OKLCHoklch(54.76% 0.176 288.9)
XYZxyz(21.5591, 14.9943, 60.7776)
Luminance0.1499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7158CF #B6CF58
analogous
#587ACF #7158CF #AC58CF
triadic
#7158CF #CF7158 #58CF71
tetradic
#7158CF #CF587A #B6CF58 #58CFAC
square
#7158CF #CF587A #B6CF58 #58CFAC
split-complementary
#7158CF #CFAC58 #7ACF58
monochromatic
#3B2786 #4F34B6 #7158CF #9988DD #C2B7EA

Accessibility & contrast

On white

5.25
#7158CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#7158CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7158CF
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7158CF#FFFFFF#000000##FFFFFF
##7158CF1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD3
Deuteranopia (green-blind)
#0869CC
Tritanopia (blue-blind)
#54738B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7158cf;
/* rgb */ color: rgb(113, 88, 207);
/* oklch */ color: oklch(54.8% 0.176 288.9);
Tailwind
colors: {
  custom: {
    50: '#a088de',
    500: '#7158cf',
    950: '#000000',
  },
}
SCSS
$custom: #7158cf;
$custom-light: #a088de;
$custom-dark: #000000;
JSON
{
  "hex": "#7158cf",
  "rgb": {
    "r": 113,
    "g": 88,
    "b": 207
  },
  "hsl": {
    "h": 252.605,
    "s": 55.349,
    "l": 57.843
  },
  "oklch": {
    "l": 0.54764,
    "c": 0.17616,
    "h": 288.9
  },
  "luminance": 0.14995
}

Semantic roles & 50–950 ramp

primary
#7158CF
secondary
#CFD9AA
accent
#DF49BF
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #7158CF

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

Preview Lab → · Contrast checker → · Palette generator →

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