#6157E5#6157E5

#6157E5 is a mid, highly saturated blue. Relative luminance 0.150; OKLCH L 55.0% C 0.207 H 280.3°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#6157E5
RGBrgb(97, 87, 229)
HSLhsl(244, 73%, 62%)
HSVhsv(244, 62%, 90%)
CMYKcmyk(57.6%, 62%, 0%, 10.2%)
CIE-LABlab(45.65, 43.45, -70.98)
CIE-LCHlch(45.65, 83.22, 301.47°)
OKLaboklab(54.95% 0.0369 -0.2041)
OKLCHoklch(54.95% 0.207 280.3)
XYZxyz(22.4764, 15.0134, 75.8270)
Luminance0.1502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6157E5 #DBE557
analogous
#5794E5 #6157E5 #A857E5
triadic
#6157E5 #E56157 #57E561
tetradic
#6157E5 #E55794 #DBE557 #57E5A8
square
#6157E5 #E55794 #DBE557 #57E5A8
split-complementary
#6157E5 #E5A857 #94E557
monochromatic
#241AA8 #2F22DD #6157E5 #938CED #C5C1F5

Accessibility & contrast

On white

5.25
#6157E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#6157E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6157E5
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6157E5#FFFFFF#000000##FFFFFF
##6157E51.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EA
Deuteranopia (green-blind)
#0067E2
Tritanopia (blue-blind)
#097A96
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #6157e5;
/* rgb */ color: rgb(97, 87, 229);
/* oklch */ color: oklch(55.0% 0.207 280.3);
Tailwind
colors: {
  custom: {
    50: '#9a87ee',
    500: '#6157e5',
    950: '#000000',
  },
}
SCSS
$custom: #6157e5;
$custom-light: #9a87ee;
$custom-dark: #000000;
JSON
{
  "hex": "#6157e5",
  "rgb": {
    "r": 97,
    "g": 87,
    "b": 229
  },
  "hsl": {
    "h": 244.225,
    "s": 73.196,
    "l": 61.961
  },
  "oklch": {
    "l": 0.54952,
    "c": 0.20739,
    "h": 280.3
  },
  "luminance": 0.15015
}

Semantic roles & 50–950 ramp

primary
#6157E5
secondary
#E2E6B2
accent
#D510C7
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #6157E5

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

Preview Lab → · Contrast checker → · Palette generator →

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