#6158F6#6158F6

#6158F6 is a mid, highly saturated blue. Relative luminance 0.162; OKLCH L 56.5% C 0.227 H 278.8°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#6158F6
RGBrgb(97, 88, 246)
HSLhsl(243, 90%, 65%)
HSVhsv(243, 64%, 96%)
CMYKcmyk(60.6%, 64.2%, 0%, 3.5%)
CIE-LABlab(47.20, 48.15, -78.01)
CIE-LCHlch(47.20, 91.68, 301.68°)
OKLaboklab(56.49% 0.0347 -0.2247)
OKLCHoklch(56.49% 0.227 278.8)
XYZxyz(25.0487, 16.1728, 88.9726)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6158F6 #EDF658
analogous
#589EF6 #6158F6 #B058F6
triadic
#6158F6 #F66158 #58F661
tetradic
#6158F6 #F6589E #EDF658 #58F6B0
square
#6158F6 #F6589E #EDF658 #58F6B0
split-complementary
#6158F6 #F6B058 #9EF658
monochromatic
#160BC9 #2A1EF3 #6158F6 #9892F9 #CFCCFC

Accessibility & contrast

On white

4.96
#6158F6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#6158F6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6158F6
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6158F6#FFFFFF#000000##FFFFFF
##6158F61.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076FB
Deuteranopia (green-blind)
#006AF3
Tritanopia (blue-blind)
#00809F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #6158f6;
/* rgb */ color: rgb(97, 88, 246);
/* oklch */ color: oklch(56.5% 0.227 278.8);
Tailwind
colors: {
  custom: {
    50: '#9d88fa',
    500: '#6158f6',
    950: '#000000',
  },
}
SCSS
$custom: #6158f6;
$custom-light: #9d88fa;
$custom-dark: #000000;
JSON
{
  "hex": "#6158f6",
  "rgb": {
    "r": 97,
    "g": 88,
    "b": 246
  },
  "hsl": {
    "h": 243.418,
    "s": 89.773,
    "l": 65.49
  },
  "oklch": {
    "l": 0.56494,
    "c": 0.22739,
    "h": 278.8
  },
  "luminance": 0.16175
}

Semantic roles & 50–950 ramp

primary
#6158F6
secondary
#ECEFBA
accent
#E600D8
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #6158F6

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

Preview Lab → · Contrast checker → · Palette generator →

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