#6157CE#6157CE

#6157CE is a mid, vivid blue. Relative luminance 0.138; OKLCH L 53.2% C 0.178 H 282.3°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#6157CE
RGBrgb(97, 87, 206)
HSLhsl(245, 55%, 57%)
HSVhsv(245, 58%, 81%)
CMYKcmyk(52.9%, 57.8%, 0%, 19.2%)
CIE-LABlab(43.96, 36.31, -60.60)
CIE-LCHlch(43.96, 70.65, 300.93°)
OKLaboklab(53.18% 0.0379 -0.1736)
OKLCHoklch(53.18% 0.178 282.3)
XYZxyz(19.4751, 13.8129, 60.0205)
Luminance0.1381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6157CE #C4CE57
analogous
#5789CE #6157CE #9D57CE
triadic
#6157CE #CE6157 #57CE61
tetradic
#6157CE #CE5789 #C4CE57 #57CE9D
square
#6157CE #CE5789 #C4CE57 #57CE9D
split-complementary
#6157CE #CE9D57 #89CE57
monochromatic
#2E2784 #3F34B3 #6157CE #8E86DC #BAB6EA

Accessibility & contrast

On white

5.58
#6157CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#6157CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6157CE
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6157CE#FFFFFF#000000##FFFFFF
##6157CE1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD2
Deuteranopia (green-blind)
#0064CC
Tritanopia (blue-blind)
#32738A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #6157ce;
/* rgb */ color: rgb(97, 87, 206);
/* oklch */ color: oklch(53.2% 0.178 282.3);
Tailwind
colors: {
  custom: {
    50: '#9687de',
    500: '#6157ce',
    950: '#000000',
  },
}
SCSS
$custom: #6157ce;
$custom-light: #9687de;
$custom-dark: #000000;
JSON
{
  "hex": "#6157ce",
  "rgb": {
    "r": 97,
    "g": 87,
    "b": 206
  },
  "hsl": {
    "h": 245.042,
    "s": 54.839,
    "l": 57.451
  },
  "oklch": {
    "l": 0.5318,
    "c": 0.17765,
    "h": 282.3
  },
  "luminance": 0.13814
}

Semantic roles & 50–950 ramp

primary
#6157CE
secondary
#D4D8A8
accent
#DE4AD2
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #6157CE

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

Preview Lab → · Contrast checker → · Palette generator →

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