#6158E9#6158E9

#6158E9 is a mid, highly saturated blue. Relative luminance 0.154; OKLCH L 55.4% C 0.211 H 279.7°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#6158E9
RGBrgb(97, 88, 233)
HSLhsl(244, 77%, 63%)
HSVhsv(244, 62%, 91%)
CMYKcmyk(58.4%, 62.2%, 0%, 8.6%)
CIE-LABlab(46.18, 44.11, -72.38)
CIE-LCHlch(46.18, 84.76, 301.36°)
OKLaboklab(55.43% 0.0358 -0.2082)
OKLCHoklch(55.43% 0.211 279.7)
XYZxyz(23.1228, 15.4024, 78.8295)
Luminance0.1540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6158E9 #E0E958
analogous
#5897E9 #6158E9 #A958E9
triadic
#6158E9 #E96158 #58E961
tetradic
#6158E9 #E95897 #E0E958 #58E9A9
square
#6158E9 #E95897 #E0E958 #58E9A9
split-complementary
#6158E9 #E9A958 #97E958
monochromatic
#2117AF #2E22E2 #6158E9 #948EF0 #C7C4F7

Accessibility & contrast

On white

5.15
#6158E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#6158E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6158E9
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6158E9#FFFFFF#000000##FFFFFF
##6158E91.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073EE
Deuteranopia (green-blind)
#0068E6
Tritanopia (blue-blind)
#007C98
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #6158e9;
/* rgb */ color: rgb(97, 88, 233);
/* oklch */ color: oklch(55.4% 0.211 279.7);
Tailwind
colors: {
  custom: {
    50: '#9a88f1',
    500: '#6158e9',
    950: '#000000',
  },
}
SCSS
$custom: #6158e9;
$custom-light: #9a88f1;
$custom-dark: #000000;
JSON
{
  "hex": "#6158e9",
  "rgb": {
    "r": 97,
    "g": 88,
    "b": 233
  },
  "hsl": {
    "h": 243.724,
    "s": 76.72,
    "l": 62.941
  },
  "oklch": {
    "l": 0.55434,
    "c": 0.21124,
    "h": 279.7
  },
  "luminance": 0.15404
}

Semantic roles & 50–950 ramp

primary
#6158E9
secondary
#E5E8B4
accent
#D90DCC
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6158E9

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

Preview Lab → · Contrast checker → · Palette generator →

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