#7158CA#7158CA

#7158CA is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.4% C 0.170 H 289.7°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#7158CA
RGBrgb(113, 88, 202)
HSLhsl(253, 52%, 57%)
HSVhsv(253, 56%, 79%)
CMYKcmyk(44.1%, 56.4%, 0%, 20.8%)
CIE-LABlab(45.30, 37.86, -56.08)
CIE-LCHlch(45.30, 67.67, 304.03°)
OKLaboklab(54.41% 0.0571 -0.1598)
OKLCHoklch(54.41% 0.17 289.7)
XYZxyz(20.9575, 14.7537, 57.6092)
Luminance0.1475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7158CA #B1CA58
analogous
#5878CA #7158CA #AA58CA
triadic
#7158CA #CA7158 #58CA71
tetradic
#7158CA #CA5878 #B1CA58 #58CAAA
square
#7158CA #CA5878 #B1CA58 #58CAAA
split-complementary
#7158CA #CAAA58 #78CA58
monochromatic
#3B287F #5137AE #7158CA #9986D9 #C0B5E7

Accessibility & contrast

On white

5.32
#7158CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#7158CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7158CA
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7158CA#FFFFFF#000000##FFFFFF
##7158CA1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#146DCE
Deuteranopia (green-blind)
#1969C8
Tritanopia (blue-blind)
#577188
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7158ca;
/* rgb */ color: rgb(113, 88, 202);
/* oklch */ color: oklch(54.4% 0.170 289.7);
Tailwind
colors: {
  custom: {
    50: '#9f88db',
    500: '#7158ca',
    950: '#000000',
  },
}
SCSS
$custom: #7158ca;
$custom-light: #9f88db;
$custom-dark: #000000;
JSON
{
  "hex": "#7158ca",
  "rgb": {
    "r": 113,
    "g": 88,
    "b": 202
  },
  "hsl": {
    "h": 253.158,
    "s": 51.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.54413,
    "c": 0.16967,
    "h": 289.7
  },
  "luminance": 0.14754
}

Semantic roles & 50–950 ramp

primary
#7158CA
secondary
#CCD6A8
accent
#DB4DBC
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #7158CA

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

Preview Lab → · Contrast checker → · Palette generator →

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