#7158F1#7158F1

#7158F1 is a mid, highly saturated blue. Relative luminance 0.168; OKLCH L 57.3% C 0.219 H 284.6°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#7158F1
RGBrgb(113, 88, 241)
HSLhsl(250, 85%, 65%)
HSVhsv(250, 63%, 95%)
CMYKcmyk(53.1%, 63.5%, 0%, 5.5%)
CIE-LABlab(48.06, 49.18, -73.76)
CIE-LCHlch(48.06, 88.66, 303.69°)
OKLaboklab(57.31% 0.0551 -0.2118)
OKLCHoklch(57.31% 0.219 284.6)
XYZxyz(26.1722, 16.8396, 85.0733)
Luminance0.1684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7158F1 #D8F158
analogous
#588CF1 #7158F1 #BE58F1
triadic
#7158F1 #F17158 #58F171
tetradic
#7158F1 #F1588C #D8F158 #58F1BE
square
#7158F1 #F1588C #D8F158 #58F1BE
split-complementary
#7158F1 #F1BE58 #8CF158
monochromatic
#2D10BF #4120EC #7158F1 #A190F6 #D1C9FA

Accessibility & contrast

On white

4.81
#7158F1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#7158F1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7158F1
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7158F1#FFFFFF#000000##FFFFFF
##7158F11.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F6
Deuteranopia (green-blind)
#006DEE
Tritanopia (blue-blind)
#3A7E9D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7158f1;
/* rgb */ color: rgb(113, 88, 241);
/* oklch */ color: oklch(57.3% 0.219 284.6);
Tailwind
colors: {
  custom: {
    50: '#a488f7',
    500: '#7158f1',
    950: '#000000',
  },
}
SCSS
$custom: #7158f1;
$custom-light: #a488f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7158f1",
  "rgb": {
    "r": 113,
    "g": 88,
    "b": 241
  },
  "hsl": {
    "h": 249.804,
    "s": 84.53,
    "l": 64.51
  },
  "oklch": {
    "l": 0.57307,
    "c": 0.21885,
    "h": 284.6
  },
  "luminance": 0.16841
}

Semantic roles & 50–950 ramp

primary
#7158F1
secondary
#E4EDB8
accent
#E105BD
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7158F1

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

Preview Lab → · Contrast checker → · Palette generator →

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