#7158ED#7158ED

#7158ED is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.0% C 0.214 H 285.0°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#7158ED
RGBrgb(113, 88, 237)
HSLhsl(250, 81%, 64%)
HSVhsv(250, 63%, 93%)
CMYKcmyk(52.3%, 62.9%, 0%, 7.1%)
CIE-LABlab(47.76, 48.01, -72.01)
CIE-LCHlch(47.76, 86.55, 303.69°)
OKLaboklab(56.99% 0.0555 -0.2066)
OKLCHoklch(56.99% 0.214 285)
XYZxyz(25.5812, 16.6032, 81.9611)
Luminance0.1661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7158ED #D4ED58
analogous
#5889ED #7158ED #BB58ED
triadic
#7158ED #ED7158 #58ED71
tetradic
#7158ED #ED5889 #D4ED58 #58EDBB
square
#7158ED #ED5889 #D4ED58 #58EDBB
split-complementary
#7158ED #EDBB58 #89ED58
monochromatic
#2F14B7 #4221E7 #7158ED #A08FF3 #CFC6F9

Accessibility & contrast

On white

4.86
#7158ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#7158ED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7158ED
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7158ED#FFFFFF#000000##FFFFFF
##7158ED1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F2
Deuteranopia (green-blind)
#006DEA
Tritanopia (blue-blind)
#3E7C9B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7158ed;
/* rgb */ color: rgb(113, 88, 237);
/* oklch */ color: oklch(57.0% 0.214 285.0);
Tailwind
colors: {
  custom: {
    50: '#a488f4',
    500: '#7158ed',
    950: '#000000',
  },
}
SCSS
$custom: #7158ed;
$custom-light: #a488f4;
$custom-dark: #000000;
JSON
{
  "hex": "#7158ed",
  "rgb": {
    "r": 113,
    "g": 88,
    "b": 237
  },
  "hsl": {
    "h": 250.067,
    "s": 80.541,
    "l": 63.725
  },
  "oklch": {
    "l": 0.56994,
    "c": 0.21396,
    "h": 285
  },
  "luminance": 0.16605
}

Semantic roles & 50–950 ramp

primary
#7158ED
secondary
#E2EBB6
accent
#DD09B9
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7158ED

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

Preview Lab → · Contrast checker → · Palette generator →

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