#6158E7#6158E7

#6158E7 is a mid, highly saturated blue. Relative luminance 0.153; OKLCH L 55.3% C 0.209 H 279.9°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#6158E7
RGBrgb(97, 88, 231)
HSLhsl(244, 75%, 63%)
HSVhsv(244, 62%, 91%)
CMYKcmyk(58%, 61.9%, 0%, 9.4%)
CIE-LABlab(46.03, 43.49, -71.50)
CIE-LCHlch(46.03, 83.69, 301.31°)
OKLaboklab(55.27% 0.0359 -0.2056)
OKLCHoklch(55.27% 0.209 279.9)
XYZxyz(22.8387, 15.2888, 77.3333)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6158E7 #DEE758
analogous
#5897E7 #6158E7 #A858E7
triadic
#6158E7 #E76158 #58E761
tetradic
#6158E7 #E75897 #DEE758 #58E7A8
square
#6158E7 #E75897 #DEE758 #58E7A8
split-complementary
#6158E7 #E7A858 #97E758
monochromatic
#2219AC #2E22DF #6158E7 #948EEF #C6C3F6

Accessibility & contrast

On white

5.17
#6158E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#6158E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6158E7
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6158E7#FFFFFF#000000##FFFFFF
##6158E71.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EC
Deuteranopia (green-blind)
#0067E4
Tritanopia (blue-blind)
#007B97
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #6158e7;
/* rgb */ color: rgb(97, 88, 231);
/* oklch */ color: oklch(55.3% 0.209 279.9);
Tailwind
colors: {
  custom: {
    50: '#9a88f0',
    500: '#6158e7',
    950: '#000000',
  },
}
SCSS
$custom: #6158e7;
$custom-light: #9a88f0;
$custom-dark: #000000;
JSON
{
  "hex": "#6158e7",
  "rgb": {
    "r": 97,
    "g": 88,
    "b": 231
  },
  "hsl": {
    "h": 243.776,
    "s": 74.869,
    "l": 62.549
  },
  "oklch": {
    "l": 0.55274,
    "c": 0.20871,
    "h": 279.9
  },
  "luminance": 0.1529
}

Semantic roles & 50–950 ramp

primary
#6158E7
secondary
#E4E7B3
accent
#D70ECA
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6158E7

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

Preview Lab → · Contrast checker → · Palette generator →

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