#6157CA#6157CA

#6157CA is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.9% C 0.172 H 282.7°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#6157CA
RGBrgb(97, 87, 202)
HSLhsl(245, 52%, 57%)
HSVhsv(245, 57%, 79%)
CMYKcmyk(52%, 56.9%, 0%, 20.8%)
CIE-LABlab(43.68, 35.07, -58.75)
CIE-LCHlch(43.68, 68.42, 300.83°)
OKLaboklab(52.89% 0.0379 -0.1681)
OKLCHoklch(52.89% 0.172 282.7)
XYZxyz(18.9954, 13.6210, 57.4939)
Luminance0.1362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6157CA #C0CA57
analogous
#5787CA #6157CA #9A57CA
triadic
#6157CA #CA6157 #57CA61
tetradic
#6157CA #CA5787 #C0CA57 #57CA9A
square
#6157CA #CA5787 #C0CA57 #57CA9A
split-complementary
#6157CA #CA9A57 #87CA57
monochromatic
#2F287F #4137AD #6157CA #8D86D9 #B9B4E7

Accessibility & contrast

On white

5.64
#6157CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#6157CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6157CA
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6157CA#FFFFFF#000000##FFFFFF
##6157CA1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCE
Deuteranopia (green-blind)
#0063C8
Tritanopia (blue-blind)
#367188
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #6157ca;
/* rgb */ color: rgb(97, 87, 202);
/* oklch */ color: oklch(52.9% 0.172 282.7);
Tailwind
colors: {
  custom: {
    50: '#9687db',
    500: '#6157ca',
    950: '#000000',
  },
}
SCSS
$custom: #6157ca;
$custom-light: #9687db;
$custom-dark: #000000;
JSON
{
  "hex": "#6157ca",
  "rgb": {
    "r": 97,
    "g": 87,
    "b": 202
  },
  "hsl": {
    "h": 245.217,
    "s": 52.036,
    "l": 56.667
  },
  "oklch": {
    "l": 0.52885,
    "c": 0.17233,
    "h": 282.7
  },
  "luminance": 0.13622
}

Semantic roles & 50–950 ramp

primary
#6157CA
secondary
#D2D6A7
accent
#DB4CCF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #6157CA

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

Preview Lab → · Contrast checker → · Palette generator →

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