#7158DD#7158DD

#7158DD is a mid, vivid violet. Relative luminance 0.157; OKLCH L 55.8% C 0.194 H 287.0°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#7158DD
RGBrgb(113, 88, 221)
HSLhsl(251, 66%, 61%)
HSVhsv(251, 60%, 87%)
CMYKcmyk(48.9%, 60.2%, 0%, 13.3%)
CIE-LABlab(46.59, 43.35, -64.86)
CIE-LCHlch(46.59, 78.01, 303.76°)
OKLaboklab(55.78% 0.0566 -0.1856)
OKLCHoklch(55.78% 0.194 287)
XYZxyz(23.3471, 15.7095, 70.1947)
Luminance0.1571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7158DD #C4DD58
analogous
#5881DD #7158DD #B358DD
triadic
#7158DD #DD7158 #58DD71
tetradic
#7158DD #DD5881 #C4DD58 #58DDB3
square
#7158DD #DD5881 #C4DD58 #58DDB3
split-complementary
#7158DD #DDB358 #81DD58
monochromatic
#37209B #492ACE #7158DD #9C8BE7 #C7BEF2

Accessibility & contrast

On white

5.07
#7158DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#7158DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7158DD
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7158DD#FFFFFF#000000##FFFFFF
##7158DD1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E1
Deuteranopia (green-blind)
#006BDA
Tritanopia (blue-blind)
#4B7792
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7158dd;
/* rgb */ color: rgb(113, 88, 221);
/* oklch */ color: oklch(55.8% 0.194 287.0);
Tailwind
colors: {
  custom: {
    50: '#a288e8',
    500: '#7158dd',
    950: '#000000',
  },
}
SCSS
$custom: #7158dd;
$custom-light: #a288e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7158dd",
  "rgb": {
    "r": 113,
    "g": 88,
    "b": 221
  },
  "hsl": {
    "h": 251.278,
    "s": 66.169,
    "l": 60.588
  },
  "oklch": {
    "l": 0.55778,
    "c": 0.19406,
    "h": 287
  },
  "luminance": 0.15711
}

Semantic roles & 50–950 ramp

primary
#7158DD
secondary
#D8E2AF
accent
#CE17AC
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7158DD

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

Preview Lab → · Contrast checker → · Palette generator →

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