#7158F2#7158F2

#7158F2 is a mid, highly saturated blue. Relative luminance 0.169; OKLCH L 57.4% C 0.220 H 284.5°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#7158F2
RGBrgb(113, 88, 242)
HSLhsl(250, 86%, 65%)
HSVhsv(250, 64%, 95%)
CMYKcmyk(53.3%, 63.6%, 0%, 5.1%)
CIE-LABlab(48.13, 49.47, -74.20)
CIE-LCHlch(48.13, 89.18, 303.69°)
OKLaboklab(57.39% 0.055 -0.2131)
OKLCHoklch(57.39% 0.22 284.5)
XYZxyz(26.3219, 16.8995, 85.8621)
Luminance0.1690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7158F2 #D9F258
analogous
#588CF2 #7158F2 #BE58F2
triadic
#7158F2 #F27158 #58F271
tetradic
#7158F2 #F2588C #D9F258 #58F2BE
square
#7158F2 #F2588C #D9F258 #58F2BE
split-complementary
#7158F2 #F2BE58 #8CF258
monochromatic
#2C0FC1 #411FEE #7158F2 #A191F6 #D2CAFB

Accessibility & contrast

On white

4.79
#7158F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#7158F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7158F2
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7158F2#FFFFFF#000000##FFFFFF
##7158F21.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F7
Deuteranopia (green-blind)
#006DEF
Tritanopia (blue-blind)
#397E9D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7158f2;
/* rgb */ color: rgb(113, 88, 242);
/* oklch */ color: oklch(57.4% 0.220 284.5);
Tailwind
colors: {
  custom: {
    50: '#a489f7',
    500: '#7158f2',
    950: '#000000',
  },
}
SCSS
$custom: #7158f2;
$custom-light: #a489f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7158f2",
  "rgb": {
    "r": 113,
    "g": 88,
    "b": 242
  },
  "hsl": {
    "h": 249.74,
    "s": 85.556,
    "l": 64.706
  },
  "oklch": {
    "l": 0.57385,
    "c": 0.22006,
    "h": 284.5
  },
  "luminance": 0.16901
}

Semantic roles & 50–950 ramp

primary
#7158F2
secondary
#E5EDB8
accent
#E203BE
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7158F2

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

Preview Lab → · Contrast checker → · Palette generator →

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