#6158F5#6158F5

#6158F5 is a mid, highly saturated blue. Relative luminance 0.161; OKLCH L 56.4% C 0.226 H 278.8°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#6158F5
RGBrgb(97, 88, 245)
HSLhsl(243, 89%, 65%)
HSVhsv(243, 64%, 96%)
CMYKcmyk(60.4%, 64.1%, 0%, 3.9%)
CIE-LABlab(47.12, 47.84, -77.59)
CIE-LCHlch(47.12, 91.15, 301.66°)
OKLaboklab(56.41% 0.0348 -0.2235)
OKLCHoklch(56.41% 0.226 278.8)
XYZxyz(24.8957, 16.1115, 88.1664)
Luminance0.1611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6158F5 #ECF558
analogous
#589EF5 #6158F5 #AF58F5
triadic
#6158F5 #F56158 #58F561
tetradic
#6158F5 #F5589E #ECF558 #58F5AF
square
#6158F5 #F5589E #ECF558 #58F5AF
split-complementary
#6158F5 #F5AF58 #9EF558
monochromatic
#170CC7 #2A1EF2 #6158F5 #9892F8 #CECBFC

Accessibility & contrast

On white

4.97
#6158F5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#6158F5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6158F5
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6158F5#FFFFFF#000000##FFFFFF
##6158F51.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076FA
Deuteranopia (green-blind)
#0069F2
Tritanopia (blue-blind)
#00809F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #6158f5;
/* rgb */ color: rgb(97, 88, 245);
/* oklch */ color: oklch(56.4% 0.226 278.8);
Tailwind
colors: {
  custom: {
    50: '#9c88fa',
    500: '#6158f5',
    950: '#000000',
  },
}
SCSS
$custom: #6158f5;
$custom-light: #9c88fa;
$custom-dark: #000000;
JSON
{
  "hex": "#6158f5",
  "rgb": {
    "r": 97,
    "g": 88,
    "b": 245
  },
  "hsl": {
    "h": 243.439,
    "s": 88.701,
    "l": 65.294
  },
  "oklch": {
    "l": 0.56411,
    "c": 0.22616,
    "h": 278.8
  },
  "luminance": 0.16113
}

Semantic roles & 50–950 ramp

primary
#6158F5
secondary
#ECEFBA
accent
#E500D8
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #6158F5

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

Preview Lab → · Contrast checker → · Palette generator →

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