#6158EA#6158EA

#6158EA is a mid, highly saturated blue. Relative luminance 0.155; OKLCH L 55.5% C 0.212 H 279.7°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#6158EA
RGBrgb(97, 88, 234)
HSLhsl(244, 78%, 63%)
HSVhsv(244, 62%, 92%)
CMYKcmyk(58.5%, 62.4%, 0%, 8.2%)
CIE-LABlab(46.26, 44.42, -72.82)
CIE-LCHlch(46.26, 85.30, 301.39°)
OKLaboklab(55.51% 0.0357 -0.2095)
OKLCHoklch(55.51% 0.212 279.7)
XYZxyz(23.2661, 15.4597, 79.5839)
Luminance0.1546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6158EA #E1EA58
analogous
#5898EA #6158EA #AA58EA
triadic
#6158EA #EA6158 #58EA61
tetradic
#6158EA #EA5898 #E1EA58 #58EAAA
square
#6158EA #EA5898 #E1EA58 #58EAAA
split-complementary
#6158EA #EAAA58 #98EA58
monochromatic
#2016B1 #2E22E3 #6158EA #948EF1 #C8C5F8

Accessibility & contrast

On white

5.13
#6158EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#6158EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6158EA
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6158EA#FFFFFF#000000##FFFFFF
##6158EA1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073EF
Deuteranopia (green-blind)
#0068E7
Tritanopia (blue-blind)
#007C99
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #6158ea;
/* rgb */ color: rgb(97, 88, 234);
/* oklch */ color: oklch(55.5% 0.212 279.7);
Tailwind
colors: {
  custom: {
    50: '#9b88f2',
    500: '#6158ea',
    950: '#000000',
  },
}
SCSS
$custom: #6158ea;
$custom-light: #9b88f2;
$custom-dark: #000000;
JSON
{
  "hex": "#6158ea",
  "rgb": {
    "r": 97,
    "g": 88,
    "b": 234
  },
  "hsl": {
    "h": 243.699,
    "s": 77.66,
    "l": 63.137
  },
  "oklch": {
    "l": 0.55514,
    "c": 0.21249,
    "h": 279.7
  },
  "luminance": 0.15461
}

Semantic roles & 50–950 ramp

primary
#6158EA
secondary
#E6E9B5
accent
#DA0CCD
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6158EA

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

Preview Lab → · Contrast checker → · Palette generator →

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