#6158E4#6158E4

#6158E4 is a mid, highly saturated blue. Relative luminance 0.151; OKLCH L 55.0% C 0.205 H 280.1°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#6158E4
RGBrgb(97, 88, 228)
HSLhsl(244, 72%, 62%)
HSVhsv(244, 61%, 89%)
CMYKcmyk(57.5%, 61.4%, 0%, 10.6%)
CIE-LABlab(45.80, 42.56, -70.17)
CIE-LCHlch(45.80, 82.07, 301.23°)
OKLaboklab(55.04% 0.0361 -0.2017)
OKLCHoklch(55.04% 0.205 280.1)
XYZxyz(22.4187, 15.1207, 75.1210)
Luminance0.1512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6158E4 #DBE458
analogous
#5895E4 #6158E4 #A758E4
triadic
#6158E4 #E46158 #58E461
tetradic
#6158E4 #E45895 #DBE458 #58E4A7
square
#6158E4 #E45895 #DBE458 #58E4A7
split-complementary
#6158E4 #E4A758 #95E458
monochromatic
#241BA7 #2F23DB #6158E4 #938DED #C5C1F5

Accessibility & contrast

On white

5.22
#6158E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#6158E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6158E4
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6158E4#FFFFFF#000000##FFFFFF
##6158E41.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E9
Deuteranopia (green-blind)
#0067E1
Tritanopia (blue-blind)
#0D7A96
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #6158e4;
/* rgb */ color: rgb(97, 88, 228);
/* oklch */ color: oklch(55.0% 0.205 280.1);
Tailwind
colors: {
  custom: {
    50: '#9a88ed',
    500: '#6158e4',
    950: '#000000',
  },
}
SCSS
$custom: #6158e4;
$custom-light: #9a88ed;
$custom-dark: #000000;
JSON
{
  "hex": "#6158e4",
  "rgb": {
    "r": 97,
    "g": 88,
    "b": 228
  },
  "hsl": {
    "h": 243.857,
    "s": 72.165,
    "l": 61.961
  },
  "oklch": {
    "l": 0.55036,
    "c": 0.20491,
    "h": 280.1
  },
  "luminance": 0.15122
}

Semantic roles & 50–950 ramp

primary
#6158E4
secondary
#E2E6B2
accent
#D411C8
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #6158E4

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

Preview Lab → · Contrast checker → · Palette generator →

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