#7158EA#7158EA

#7158EA is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 56.8% C 0.210 H 285.4°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7158EA
RGBrgb(113, 88, 234)
HSLhsl(250, 78%, 63%)
HSVhsv(250, 62%, 92%)
CMYKcmyk(51.7%, 62.4%, 0%, 8.2%)
CIE-LABlab(47.53, 47.14, -70.68)
CIE-LCHlch(47.53, 84.96, 303.70°)
OKLaboklab(56.76% 0.0558 -0.2027)
OKLCHoklch(56.76% 0.21 285.4)
XYZxyz(25.1466, 16.4294, 79.6721)
Luminance0.1643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7158EA #D1EA58
analogous
#5888EA #7158EA #BA58EA
triadic
#7158EA #EA7158 #58EA71
tetradic
#7158EA #EA5888 #D1EA58 #58EABA
square
#7158EA #EA5888 #D1EA58 #58EABA
split-complementary
#7158EA #EABA58 #88EA58
monochromatic
#3116B1 #4322E3 #7158EA #9F8EF1 #CDC5F8

Accessibility & contrast

On white

4.90
#7158EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#7158EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7158EA
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7158EA#FFFFFF#000000##FFFFFF
##7158EA1.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075EF
Deuteranopia (green-blind)
#006CE7
Tritanopia (blue-blind)
#417B99
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7158ea;
/* rgb */ color: rgb(113, 88, 234);
/* oklch */ color: oklch(56.8% 0.210 285.4);
Tailwind
colors: {
  custom: {
    50: '#a388f2',
    500: '#7158ea',
    950: '#000000',
  },
}
SCSS
$custom: #7158ea;
$custom-light: #a388f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7158ea",
  "rgb": {
    "r": 113,
    "g": 88,
    "b": 234
  },
  "hsl": {
    "h": 250.274,
    "s": 77.66,
    "l": 63.137
  },
  "oklch": {
    "l": 0.56761,
    "c": 0.21027,
    "h": 285.4
  },
  "luminance": 0.16431
}

Semantic roles & 50–950 ramp

primary
#7158EA
secondary
#E0E9B5
accent
#DA0CB7
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7158EA

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

Preview Lab → · Contrast checker → · Palette generator →

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