#7158F3#7158F3

#7158F3 is a mid, highly saturated blue. Relative luminance 0.170; OKLCH L 57.5% C 0.221 H 284.4°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#7158F3
RGBrgb(113, 88, 243)
HSLhsl(250, 87%, 65%)
HSVhsv(250, 64%, 95%)
CMYKcmyk(53.5%, 63.8%, 0%, 4.7%)
CIE-LABlab(48.21, 49.77, -74.64)
CIE-LCHlch(48.21, 89.71, 303.69°)
OKLaboklab(57.46% 0.0549 -0.2144)
OKLCHoklch(57.46% 0.221 284.4)
XYZxyz(26.4725, 16.9597, 86.6553)
Luminance0.1696 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7158F3 #DAF358
analogous
#588DF3 #7158F3 #BE58F3
triadic
#7158F3 #F37158 #58F371
tetradic
#7158F3 #F3588D #DAF358 #58F3BE
square
#7158F3 #F3588D #DAF358 #58F3BE
split-complementary
#7158F3 #F3BE58 #8DF358
monochromatic
#2B0EC3 #401FEF #7158F3 #A291F7 #D2CAFB

Accessibility & contrast

On white

4.78
#7158F3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#7158F3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7158F3
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7158F3#FFFFFF#000000##FFFFFF
##7158F31.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F8
Deuteranopia (green-blind)
#006DF0
Tritanopia (blue-blind)
#387E9E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7158f3;
/* rgb */ color: rgb(113, 88, 243);
/* oklch */ color: oklch(57.5% 0.221 284.4);
Tailwind
colors: {
  custom: {
    50: '#a589f8',
    500: '#7158f3',
    950: '#000000',
  },
}
SCSS
$custom: #7158f3;
$custom-light: #a589f8;
$custom-dark: #000000;
JSON
{
  "hex": "#7158f3",
  "rgb": {
    "r": 113,
    "g": 88,
    "b": 243
  },
  "hsl": {
    "h": 249.677,
    "s": 86.592,
    "l": 64.902
  },
  "oklch": {
    "l": 0.57464,
    "c": 0.22129,
    "h": 284.4
  },
  "luminance": 0.16961
}

Semantic roles & 50–950 ramp

primary
#7158F3
secondary
#E5EEB9
accent
#E302BF
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7158F3

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

Preview Lab → · Contrast checker → · Palette generator →

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