#7158CB#7158CB

#7158CB is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.5% C 0.171 H 289.5°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#7158CB
RGBrgb(113, 88, 203)
HSLhsl(253, 53%, 57%)
HSVhsv(253, 57%, 80%)
CMYKcmyk(44.3%, 56.7%, 0%, 20.4%)
CIE-LABlab(45.36, 38.15, -56.55)
CIE-LCHlch(45.36, 68.22, 304.00°)
OKLaboklab(54.48% 0.0571 -0.1612)
OKLCHoklch(54.48% 0.171 289.5)
XYZxyz(21.0762, 14.8012, 58.2348)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7158CB #B2CB58
analogous
#5879CB #7158CB #AA58CB
triadic
#7158CB #CB7158 #58CB71
tetradic
#7158CB #CB5879 #B2CB58 #58CBAA
square
#7158CB #CB5879 #B2CB58 #58CBAA
split-complementary
#7158CB #CBAA58 #79CB58
monochromatic
#3B2881 #5137AF #7158CB #9987DA #C0B5E8

Accessibility & contrast

On white

5.30
#7158CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#7158CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7158CB
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7158CB#FFFFFF#000000##FFFFFF
##7158CB1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#116ECF
Deuteranopia (green-blind)
#1769C9
Tritanopia (blue-blind)
#567189
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7158cb;
/* rgb */ color: rgb(113, 88, 203);
/* oklch */ color: oklch(54.5% 0.171 289.5);
Tailwind
colors: {
  custom: {
    50: '#a088db',
    500: '#7158cb',
    950: '#000000',
  },
}
SCSS
$custom: #7158cb;
$custom-light: #a088db;
$custom-dark: #000000;
JSON
{
  "hex": "#7158cb",
  "rgb": {
    "r": 113,
    "g": 88,
    "b": 203
  },
  "hsl": {
    "h": 253.043,
    "s": 52.511,
    "l": 57.059
  },
  "oklch": {
    "l": 0.54483,
    "c": 0.17097,
    "h": 289.5
  },
  "luminance": 0.14802
}

Semantic roles & 50–950 ramp

primary
#7158CB
secondary
#CDD7A8
accent
#DC4CBD
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #7158CB

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

Preview Lab → · Contrast checker → · Palette generator →

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