#7158EF#7158EF

#7158EF is a mid, highly saturated blue. Relative luminance 0.167; OKLCH L 57.1% C 0.216 H 284.8°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#7158EF
RGBrgb(113, 88, 239)
HSLhsl(250, 83%, 64%)
HSVhsv(250, 63%, 94%)
CMYKcmyk(52.7%, 63.2%, 0%, 6.3%)
CIE-LABlab(47.91, 48.60, -72.89)
CIE-LCHlch(47.91, 87.60, 303.69°)
OKLaboklab(57.15% 0.0553 -0.2092)
OKLCHoklch(57.15% 0.216 284.8)
XYZxyz(25.8751, 16.7207, 83.5086)
Luminance0.1672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7158EF #D6EF58
analogous
#588BEF #7158EF #BD58EF
triadic
#7158EF #EF7158 #58EF71
tetradic
#7158EF #EF588B #D6EF58 #58EFBD
square
#7158EF #EF588B #D6EF58 #58EFBD
split-complementary
#7158EF #EFBD58 #8BEF58
monochromatic
#2E12BB #4220EA #7158EF #A090F4 #D0C8FA

Accessibility & contrast

On white

4.83
#7158EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#7158EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7158EF
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7158EF#FFFFFF#000000##FFFFFF
##7158EF1.004.834.344.83
#FFFFFF4.831.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F4
Deuteranopia (green-blind)
#006DEC
Tritanopia (blue-blind)
#3C7D9C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7158ef;
/* rgb */ color: rgb(113, 88, 239);
/* oklch */ color: oklch(57.1% 0.216 284.8);
Tailwind
colors: {
  custom: {
    50: '#a488f5',
    500: '#7158ef',
    950: '#000000',
  },
}
SCSS
$custom: #7158ef;
$custom-light: #a488f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7158ef",
  "rgb": {
    "r": 113,
    "g": 88,
    "b": 239
  },
  "hsl": {
    "h": 249.934,
    "s": 82.514,
    "l": 64.118
  },
  "oklch": {
    "l": 0.5715,
    "c": 0.21641,
    "h": 284.8
  },
  "luminance": 0.16722
}

Semantic roles & 50–950 ramp

primary
#7158EF
secondary
#E3ECB7
accent
#DF07BB
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7158EF

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

Preview Lab → · Contrast checker → · Palette generator →

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