#7158F0#7158F0

#7158F0 is a mid, highly saturated blue. Relative luminance 0.168; OKLCH L 57.2% C 0.218 H 284.7°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#7158F0
RGBrgb(113, 88, 240)
HSLhsl(250, 84%, 64%)
HSVhsv(250, 63%, 94%)
CMYKcmyk(52.9%, 63.3%, 0%, 5.9%)
CIE-LABlab(47.98, 48.89, -73.33)
CIE-LCHlch(47.98, 88.13, 303.69°)
OKLaboklab(57.23% 0.0552 -0.2105)
OKLCHoklch(57.23% 0.218 284.7)
XYZxyz(26.0232, 16.7800, 84.2888)
Luminance0.1678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7158F0 #D7F058
analogous
#588BF0 #7158F0 #BD58F0
triadic
#7158F0 #F07158 #58F071
tetradic
#7158F0 #F0588B #D7F058 #58F0BD
square
#7158F0 #F0588B #D7F058 #58F0BD
split-complementary
#7158F0 #F0BD58 #8BF058
monochromatic
#2D11BD #4120EB #7158F0 #A190F5 #D0C8FA

Accessibility & contrast

On white

4.82
#7158F0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#7158F0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7158F0
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7158F0#FFFFFF#000000##FFFFFF
##7158F01.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F5
Deuteranopia (green-blind)
#006DED
Tritanopia (blue-blind)
#3B7D9C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7158f0;
/* rgb */ color: rgb(113, 88, 240);
/* oklch */ color: oklch(57.2% 0.218 284.7);
Tailwind
colors: {
  custom: {
    50: '#a488f6',
    500: '#7158f0',
    950: '#000000',
  },
}
SCSS
$custom: #7158f0;
$custom-light: #a488f6;
$custom-dark: #000000;
JSON
{
  "hex": "#7158f0",
  "rgb": {
    "r": 113,
    "g": 88,
    "b": 240
  },
  "hsl": {
    "h": 249.868,
    "s": 83.516,
    "l": 64.314
  },
  "oklch": {
    "l": 0.57228,
    "c": 0.21764,
    "h": 284.7
  },
  "luminance": 0.16781
}

Semantic roles & 50–950 ramp

primary
#7158F0
secondary
#E4ECB8
accent
#E006BC
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7158F0

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

Preview Lab → · Contrast checker → · Palette generator →

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