#6157EC#6157EC

#6157EC is a mid, highly saturated blue. Relative luminance 0.154; OKLCH L 55.5% C 0.216 H 279.7°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#6157EC
RGBrgb(97, 87, 236)
HSLhsl(244, 80%, 63%)
HSVhsv(244, 63%, 93%)
CMYKcmyk(58.9%, 63.1%, 0%, 7.5%)
CIE-LABlab(46.19, 45.63, -74.05)
CIE-LCHlch(46.19, 86.98, 301.64°)
OKLaboklab(55.52% 0.0364 -0.2131)
OKLCHoklch(55.52% 0.216 279.7)
XYZxyz(23.4735, 15.4122, 81.0785)
Luminance0.1541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6157EC #E2EC57
analogous
#5797EC #6157EC #AB57EC
triadic
#6157EC #EC6157 #57EC61
tetradic
#6157EC #EC5797 #E2EC57 #57ECAB
square
#6157EC #EC5797 #E2EC57 #57ECAB
split-complementary
#6157EC #ECAB57 #97EC57
monochromatic
#1F14B4 #2D20E6 #6157EC #958EF2 #C8C5F8

Accessibility & contrast

On white

5.14
#6157EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#6157EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6157EC
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6157EC#FFFFFF#000000##FFFFFF
##6157EC1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F1
Deuteranopia (green-blind)
#0068E9
Tritanopia (blue-blind)
#007C9A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #6157ec;
/* rgb */ color: rgb(97, 87, 236);
/* oklch */ color: oklch(55.5% 0.216 279.7);
Tailwind
colors: {
  custom: {
    50: '#9b87f3',
    500: '#6157ec',
    950: '#000000',
  },
}
SCSS
$custom: #6157ec;
$custom-light: #9b87f3;
$custom-dark: #000000;
JSON
{
  "hex": "#6157ec",
  "rgb": {
    "r": 97,
    "g": 87,
    "b": 236
  },
  "hsl": {
    "h": 244.027,
    "s": 79.679,
    "l": 63.333
  },
  "oklch": {
    "l": 0.55516,
    "c": 0.21617,
    "h": 279.7
  },
  "luminance": 0.15414
}

Semantic roles & 50–950 ramp

primary
#6157EC
secondary
#E6EAB5
accent
#DC0ACE
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6157EC

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

Preview Lab → · Contrast checker → · Palette generator →

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