#6157DC#6157DC

#6157DC is a mid, vivid blue. Relative luminance 0.145; OKLCH L 54.2% C 0.196 H 281.0°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#6157DC
RGBrgb(97, 87, 220)
HSLhsl(245, 66%, 60%)
HSVhsv(245, 60%, 86%)
CMYKcmyk(55.9%, 60.5%, 0%, 13.7%)
CIE-LABlab(44.97, 40.65, -66.97)
CIE-LCHlch(44.97, 78.35, 301.26°)
OKLaboklab(54.24% 0.0375 -0.1923)
OKLCHoklch(54.24% 0.196 281)
XYZxyz(21.2522, 14.5237, 69.3797)
Luminance0.1452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6157DC #D2DC57
analogous
#5790DC #6157DC #A357DC
triadic
#6157DC #DC6157 #57DC61
tetradic
#6157DC #DC5790 #D2DC57 #57DCA3
square
#6157DC #DC5790 #D2DC57 #57DCA3
split-complementary
#6157DC #DCA357 #90DC57
monochromatic
#292099 #362ACB #6157DC #918AE7 #C0BCF1

Accessibility & contrast

On white

5.38
#6157DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#6157DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6157DC
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6157DC#FFFFFF#000000##FFFFFF
##6157DC1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#0066D9
Tritanopia (blue-blind)
#207791
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #6157dc;
/* rgb */ color: rgb(97, 87, 220);
/* oklch */ color: oklch(54.2% 0.196 281.0);
Tailwind
colors: {
  custom: {
    50: '#9887e8',
    500: '#6157dc',
    950: '#000000',
  },
}
SCSS
$custom: #6157dc;
$custom-light: #9887e8;
$custom-dark: #000000;
JSON
{
  "hex": "#6157dc",
  "rgb": {
    "r": 97,
    "g": 87,
    "b": 220
  },
  "hsl": {
    "h": 244.511,
    "s": 65.517,
    "l": 60.196
  },
  "oklch": {
    "l": 0.54244,
    "c": 0.19592,
    "h": 281
  },
  "luminance": 0.14525
}

Semantic roles & 50–950 ramp

primary
#6157DC
secondary
#DDE1AE
accent
#CD18C0
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #6157DC

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

Preview Lab → · Contrast checker → · Palette generator →

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