#6157EA#6157EA

#6157EA is a mid, highly saturated blue. Relative luminance 0.153; OKLCH L 55.4% C 0.214 H 279.8°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#6157EA
RGBrgb(97, 87, 234)
HSLhsl(244, 78%, 63%)
HSVhsv(244, 63%, 92%)
CMYKcmyk(58.5%, 62.8%, 0%, 8.2%)
CIE-LABlab(46.04, 45.00, -73.18)
CIE-LCHlch(46.04, 85.91, 301.59°)
OKLaboklab(55.35% 0.0366 -0.2105)
OKLCHoklch(55.35% 0.214 279.8)
XYZxyz(23.1845, 15.2966, 79.5568)
Luminance0.1530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6157EA #E0EA57
analogous
#5796EA #6157EA #AB57EA
triadic
#6157EA #EA6157 #57EA61
tetradic
#6157EA #EA5796 #E0EA57 #57EAAB
square
#6157EA #EA5796 #E0EA57 #57EAAB
split-complementary
#6157EA #EAAB57 #96EA57
monochromatic
#2116B1 #2E21E3 #6157EA #948DF1 #C7C4F8

Accessibility & contrast

On white

5.17
#6157EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#6157EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6157EA
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6157EA#FFFFFF#000000##FFFFFF
##6157EA1.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)
#0073EF
Deuteranopia (green-blind)
#0067E7
Tritanopia (blue-blind)
#007C99
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #6157ea;
/* rgb */ color: rgb(97, 87, 234);
/* oklch */ color: oklch(55.4% 0.214 279.8);
Tailwind
colors: {
  custom: {
    50: '#9b87f2',
    500: '#6157ea',
    950: '#000000',
  },
}
SCSS
$custom: #6157ea;
$custom-light: #9b87f2;
$custom-dark: #000000;
JSON
{
  "hex": "#6157ea",
  "rgb": {
    "r": 97,
    "g": 87,
    "b": 234
  },
  "hsl": {
    "h": 244.082,
    "s": 77.778,
    "l": 62.941
  },
  "oklch": {
    "l": 0.55354,
    "c": 0.21368,
    "h": 279.8
  },
  "luminance": 0.15298
}

Semantic roles & 50–950 ramp

primary
#6157EA
secondary
#E5E9B4
accent
#DA0BCC
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6157EA

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

Preview Lab → · Contrast checker → · Palette generator →

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