#7158DB#7158DB

#7158DB is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.6% C 0.192 H 287.2°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#7158DB
RGBrgb(113, 88, 219)
HSLhsl(251, 65%, 60%)
HSVhsv(251, 60%, 86%)
CMYKcmyk(48.4%, 59.8%, 0%, 14.1%)
CIE-LABlab(46.45, 42.77, -63.95)
CIE-LCHlch(46.45, 76.93, 303.77°)
OKLaboklab(55.63% 0.0567 -0.1829)
OKLCHoklch(55.63% 0.192 287.2)
XYZxyz(23.0822, 15.6036, 68.7997)
Luminance0.1560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7158DB #C2DB58
analogous
#5881DB #7158DB #B258DB
triadic
#7158DB #DB7158 #58DB71
tetradic
#7158DB #DB5881 #C2DB58 #58DBB2
square
#7158DB #DB5881 #C2DB58 #58DBB2
split-complementary
#7158DB #DBB258 #81DB58
monochromatic
#372198 #4A2CCA #7158DB #9C8AE6 #C7BDF1

Accessibility & contrast

On white

5.10
#7158DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#7158DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7158DB
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7158DB#FFFFFF#000000##FFFFFF
##7158DB1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DF
Deuteranopia (green-blind)
#006AD8
Tritanopia (blue-blind)
#4C7691
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7158db;
/* rgb */ color: rgb(113, 88, 219);
/* oklch */ color: oklch(55.6% 0.192 287.2);
Tailwind
colors: {
  custom: {
    50: '#a188e7',
    500: '#7158db',
    950: '#000000',
  },
}
SCSS
$custom: #7158db;
$custom-light: #a188e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7158db",
  "rgb": {
    "r": 113,
    "g": 88,
    "b": 219
  },
  "hsl": {
    "h": 251.45,
    "s": 64.532,
    "l": 60.196
  },
  "oklch": {
    "l": 0.5563,
    "c": 0.19152,
    "h": 287.2
  },
  "luminance": 0.15605
}

Semantic roles & 50–950 ramp

primary
#7158DB
secondary
#D7E1AE
accent
#CC19AA
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7158DB

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

Preview Lab → · Contrast checker → · Palette generator →

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