#7158F7#7158F7

#7158F7 is a mid, highly saturated blue. Relative luminance 0.172; OKLCH L 57.8% C 0.226 H 284.0°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#7158F7
RGBrgb(113, 88, 247)
HSLhsl(249, 91%, 66%)
HSVhsv(249, 64%, 97%)
CMYKcmyk(54.3%, 64.4%, 0%, 3.1%)
CIE-LABlab(48.52, 50.93, -76.37)
CIE-LCHlch(48.52, 91.80, 303.70°)
OKLaboklab(57.78% 0.0545 -0.2194)
OKLCHoklch(57.78% 0.226 284)
XYZxyz(27.0832, 17.2040, 89.8712)
Luminance0.1721 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7158F7 #DEF758
analogous
#588EF7 #7158F7 #C058F7
triadic
#7158F7 #F77158 #58F771
tetradic
#7158F7 #F7588E #DEF758 #58F7C0
square
#7158F7 #F7588E #DEF758 #58F7C0
split-complementary
#7158F7 #F7C058 #8EF758
monochromatic
#280ACB #3F1EF4 #7158F7 #A392FA #D4CDFD

Accessibility & contrast

On white

4.73
#7158F7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#7158F7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7158F7
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7158F7#FFFFFF#000000##FFFFFF
##7158F71.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078FC
Deuteranopia (green-blind)
#006EF4
Tritanopia (blue-blind)
#3380A0
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7158f7;
/* rgb */ color: rgb(113, 88, 247);
/* oklch */ color: oklch(57.8% 0.226 284.0);
Tailwind
colors: {
  custom: {
    50: '#a589fb',
    500: '#7158f7',
    950: '#000000',
  },
}
SCSS
$custom: #7158f7;
$custom-light: #a589fb;
$custom-dark: #000000;
JSON
{
  "hex": "#7158f7",
  "rgb": {
    "r": 113,
    "g": 88,
    "b": 247
  },
  "hsl": {
    "h": 249.434,
    "s": 90.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.57782,
    "c": 0.22612,
    "h": 284
  },
  "luminance": 0.17206
}

Semantic roles & 50–950 ramp

primary
#7158F7
secondary
#E8F0BB
accent
#E600C1
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7158F7

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

Preview Lab → · Contrast checker → · Palette generator →

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