#6157EF#6157EF

#6157EF is a mid, highly saturated blue. Relative luminance 0.156; OKLCH L 55.8% C 0.220 H 279.5°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#6157EF
RGBrgb(97, 87, 239)
HSLhsl(244, 83%, 64%)
HSVhsv(244, 64%, 94%)
CMYKcmyk(59.4%, 63.6%, 0%, 6.3%)
CIE-LABlab(46.43, 46.56, -75.35)
CIE-LCHlch(46.43, 88.57, 301.71°)
OKLaboklab(55.76% 0.0361 -0.2169)
OKLCHoklch(55.76% 0.22 279.5)
XYZxyz(23.9130, 15.5880, 83.3933)
Luminance0.1559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6157EF #E5EF57
analogous
#5799EF #6157EF #AD57EF
triadic
#6157EF #EF6157 #57EF61
tetradic
#6157EF #EF5799 #E5EF57 #57EFAD
square
#6157EF #EF5799 #E5EF57 #57EFAD
split-complementary
#6157EF #EFAD57 #99EF57
monochromatic
#1D12BA #2C1FEA #6157EF #968FF4 #CAC7FA

Accessibility & contrast

On white

5.10
#6157EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#6157EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6157EF
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6157EF#FFFFFF#000000##FFFFFF
##6157EF1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F4
Deuteranopia (green-blind)
#0068EC
Tritanopia (blue-blind)
#007D9B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #6157ef;
/* rgb */ color: rgb(97, 87, 239);
/* oklch */ color: oklch(55.8% 0.220 279.5);
Tailwind
colors: {
  custom: {
    50: '#9b87f5',
    500: '#6157ef',
    950: '#000000',
  },
}
SCSS
$custom: #6157ef;
$custom-light: #9b87f5;
$custom-dark: #000000;
JSON
{
  "hex": "#6157ef",
  "rgb": {
    "r": 97,
    "g": 87,
    "b": 239
  },
  "hsl": {
    "h": 243.947,
    "s": 82.609,
    "l": 63.922
  },
  "oklch": {
    "l": 0.55761,
    "c": 0.21991,
    "h": 279.5
  },
  "luminance": 0.1559
}

Semantic roles & 50–950 ramp

primary
#6157EF
secondary
#E8ECB6
accent
#DF06D1
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6157EF

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

Preview Lab → · Contrast checker → · Palette generator →

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