#7158F5#7158F5

#7158F5 is a mid, highly saturated blue. Relative luminance 0.171; OKLCH L 57.6% C 0.224 H 284.2°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#7158F5
RGBrgb(113, 88, 245)
HSLhsl(250, 89%, 65%)
HSVhsv(250, 64%, 96%)
CMYKcmyk(53.9%, 64.1%, 0%, 3.9%)
CIE-LABlab(48.36, 50.35, -75.51)
CIE-LCHlch(48.36, 90.75, 303.70°)
OKLaboklab(57.62% 0.0547 -0.2169)
OKLCHoklch(57.62% 0.224 284.2)
XYZxyz(26.7762, 17.0812, 88.2546)
Luminance0.1708 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7158F5 #DCF558
analogous
#588DF5 #7158F5 #BF58F5
triadic
#7158F5 #F57158 #58F571
tetradic
#7158F5 #F5588D #DCF558 #58F5BF
square
#7158F5 #F5588D #DCF558 #58F5BF
split-complementary
#7158F5 #F5BF58 #8DF558
monochromatic
#2A0CC7 #401EF2 #7158F5 #A292F8 #D3CBFC

Accessibility & contrast

On white

4.75
#7158F5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#7158F5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7158F5
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7158F5#FFFFFF#000000##FFFFFF
##7158F51.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078FA
Deuteranopia (green-blind)
#006EF2
Tritanopia (blue-blind)
#367F9F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7158f5;
/* rgb */ color: rgb(113, 88, 245);
/* oklch */ color: oklch(57.6% 0.224 284.2);
Tailwind
colors: {
  custom: {
    50: '#a589fa',
    500: '#7158f5',
    950: '#000000',
  },
}
SCSS
$custom: #7158f5;
$custom-light: #a589fa;
$custom-dark: #000000;
JSON
{
  "hex": "#7158f5",
  "rgb": {
    "r": 113,
    "g": 88,
    "b": 245
  },
  "hsl": {
    "h": 249.554,
    "s": 88.701,
    "l": 65.294
  },
  "oklch": {
    "l": 0.57623,
    "c": 0.22371,
    "h": 284.2
  },
  "luminance": 0.17083
}

Semantic roles & 50–950 ramp

primary
#7158F5
secondary
#E6EFBA
accent
#E500C1
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7158F5

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

Preview Lab → · Contrast checker → · Palette generator →

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