#6157CC#6157CC

#6157CC is a mid, vivid blue. Relative luminance 0.137; OKLCH L 53.0% C 0.175 H 282.5°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#6157CC
RGBrgb(97, 87, 204)
HSLhsl(245, 53%, 57%)
HSVhsv(245, 57%, 80%)
CMYKcmyk(52.5%, 57.4%, 0%, 20%)
CIE-LABlab(43.82, 35.69, -59.68)
CIE-LCHlch(43.82, 69.53, 300.88°)
OKLaboklab(53.03% 0.0379 -0.1708)
OKLCHoklch(53.03% 0.175 282.5)
XYZxyz(19.2337, 13.7163, 58.7491)
Luminance0.1372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6157CC #C2CC57
analogous
#5788CC #6157CC #9C57CC
triadic
#6157CC #CC6157 #57CC61
tetradic
#6157CC #CC5788 #C2CC57 #57CC9C
square
#6157CC #CC5788 #C2CC57 #57CC9C
split-complementary
#6157CC #CC9C57 #88CC57
monochromatic
#2F2781 #4036B0 #6157CC #8D86DA #B9B5E9

Accessibility & contrast

On white

5.61
#6157CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#6157CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6157CC
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6157CC#FFFFFF#000000##FFFFFF
##6157CC1.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#0064CA
Tritanopia (blue-blind)
#347289
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #6157cc;
/* rgb */ color: rgb(97, 87, 204);
/* oklch */ color: oklch(53.0% 0.175 282.5);
Tailwind
colors: {
  custom: {
    50: '#9687dc',
    500: '#6157cc',
    950: '#000000',
  },
}
SCSS
$custom: #6157cc;
$custom-light: #9687dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6157cc",
  "rgb": {
    "r": 97,
    "g": 87,
    "b": 204
  },
  "hsl": {
    "h": 245.128,
    "s": 53.425,
    "l": 57.059
  },
  "oklch": {
    "l": 0.53032,
    "c": 0.175,
    "h": 282.5
  },
  "luminance": 0.13717
}

Semantic roles & 50–950 ramp

primary
#6157CC
secondary
#D3D7A8
accent
#DD4BD0
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #6157CC

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

Preview Lab → · Contrast checker → · Palette generator →

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