#6157E6#6157E6

#6157E6 is a mid, highly saturated blue. Relative luminance 0.151; OKLCH L 55.0% C 0.209 H 280.2°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#6157E6
RGBrgb(97, 87, 230)
HSLhsl(244, 74%, 62%)
HSVhsv(244, 62%, 90%)
CMYKcmyk(57.8%, 62.2%, 0%, 9.8%)
CIE-LABlab(45.73, 43.76, -71.42)
CIE-LCHlch(45.73, 83.76, 301.50°)
OKLaboklab(55.03% 0.0369 -0.2054)
OKLCHoklch(55.03% 0.209 280.2)
XYZxyz(22.6164, 15.0694, 76.5645)
Luminance0.1507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6157E6 #DCE657
analogous
#5794E6 #6157E6 #A957E6
triadic
#6157E6 #E66157 #57E661
tetradic
#6157E6 #E65794 #DCE657 #57E6A9
square
#6157E6 #E65794 #DCE657 #57E6A9
split-complementary
#6157E6 #E6A957 #94E657
monochromatic
#2319A9 #2F22DE #6157E6 #938CEE #C5C2F6

Accessibility & contrast

On white

5.23
#6157E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#6157E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6157E6
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6157E6#FFFFFF#000000##FFFFFF
##6157E61.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EB
Deuteranopia (green-blind)
#0067E3
Tritanopia (blue-blind)
#047A96
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #6157e6;
/* rgb */ color: rgb(97, 87, 230);
/* oklch */ color: oklch(55.0% 0.209 280.2);
Tailwind
colors: {
  custom: {
    50: '#9a87ef',
    500: '#6157e6',
    950: '#000000',
  },
}
SCSS
$custom: #6157e6;
$custom-light: #9a87ef;
$custom-dark: #000000;
JSON
{
  "hex": "#6157e6",
  "rgb": {
    "r": 97,
    "g": 87,
    "b": 230
  },
  "hsl": {
    "h": 244.196,
    "s": 74.093,
    "l": 62.157
  },
  "oklch": {
    "l": 0.55032,
    "c": 0.20865,
    "h": 280.2
  },
  "luminance": 0.15071
}

Semantic roles & 50–950 ramp

primary
#6157E6
secondary
#E3E7B2
accent
#D60FC8
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6157E6

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

Preview Lab → · Contrast checker → · Palette generator →

#6157E6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva