#6158EC#6158EC

#6158EC is a mid, highly saturated blue. Relative luminance 0.156; OKLCH L 55.7% C 0.215 H 279.5°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#6158EC
RGBrgb(97, 88, 236)
HSLhsl(244, 80%, 64%)
HSVhsv(244, 63%, 93%)
CMYKcmyk(58.9%, 62.7%, 0%, 7.5%)
CIE-LABlab(46.41, 45.05, -73.69)
CIE-LCHlch(46.41, 86.37, 301.44°)
OKLaboklab(55.68% 0.0355 -0.212)
OKLCHoklch(55.68% 0.215 279.5)
XYZxyz(23.5550, 15.5753, 81.1057)
Luminance0.1558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6158EC #E3EC58
analogous
#5899EC #6158EC #AB58EC
triadic
#6158EC #EC6158 #58EC61
tetradic
#6158EC #EC5899 #E3EC58 #58ECAB
square
#6158EC #EC5899 #E3EC58 #58ECAB
split-complementary
#6158EC #ECAB58 #99EC58
monochromatic
#1E15B5 #2D21E6 #6158EC #958FF2 #C9C6F9

Accessibility & contrast

On white

5.10
#6158EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#6158EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6158EC
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6158EC#FFFFFF#000000##FFFFFF
##6158EC1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F1
Deuteranopia (green-blind)
#0068E9
Tritanopia (blue-blind)
#007D9A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #6158ec;
/* rgb */ color: rgb(97, 88, 236);
/* oklch */ color: oklch(55.7% 0.215 279.5);
Tailwind
colors: {
  custom: {
    50: '#9b88f3',
    500: '#6158ec',
    950: '#000000',
  },
}
SCSS
$custom: #6158ec;
$custom-light: #9b88f3;
$custom-dark: #000000;
JSON
{
  "hex": "#6158ec",
  "rgb": {
    "r": 97,
    "g": 88,
    "b": 236
  },
  "hsl": {
    "h": 243.649,
    "s": 79.57,
    "l": 63.529
  },
  "oklch": {
    "l": 0.55675,
    "c": 0.215,
    "h": 279.5
  },
  "luminance": 0.15577
}

Semantic roles & 50–950 ramp

primary
#6158EC
secondary
#E7EAB6
accent
#DC0ACF
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6158EC

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

Preview Lab → · Contrast checker → · Palette generator →

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