#6157F5#6157F5

#6157F5 is a mid, highly saturated blue. Relative luminance 0.160; OKLCH L 56.3% C 0.227 H 279.0°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#6157F5
RGBrgb(97, 87, 245)
HSLhsl(244, 89%, 65%)
HSVhsv(244, 64%, 96%)
CMYKcmyk(60.4%, 64.5%, 0%, 3.9%)
CIE-LABlab(46.91, 48.41, -77.93)
CIE-LCHlch(46.91, 91.75, 301.85°)
OKLaboklab(56.26% 0.0356 -0.2245)
OKLCHoklch(56.26% 0.227 279)
XYZxyz(24.8141, 15.9485, 88.1392)
Luminance0.1595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6157F5 #EBF557
analogous
#579CF5 #6157F5 #B057F5
triadic
#6157F5 #F56157 #57F561
tetradic
#6157F5 #F5579C #EBF557 #57F5B0
square
#6157F5 #F5579C #EBF557 #57F5B0
split-complementary
#6157F5 #F5B057 #9CF557
monochromatic
#180CC6 #2B1DF2 #6157F5 #9791F8 #CECBFC

Accessibility & contrast

On white

5.01
#6157F5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#6157F5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6157F5
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6157F5#FFFFFF#000000##FFFFFF
##6157F51.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075FA
Deuteranopia (green-blind)
#0069F2
Tritanopia (blue-blind)
#00809E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #6157f5;
/* rgb */ color: rgb(97, 87, 245);
/* oklch */ color: oklch(56.3% 0.227 279.0);
Tailwind
colors: {
  custom: {
    50: '#9c87fa',
    500: '#6157f5',
    950: '#000000',
  },
}
SCSS
$custom: #6157f5;
$custom-light: #9c87fa;
$custom-dark: #000000;
JSON
{
  "hex": "#6157f5",
  "rgb": {
    "r": 97,
    "g": 87,
    "b": 245
  },
  "hsl": {
    "h": 243.797,
    "s": 88.764,
    "l": 65.098
  },
  "oklch": {
    "l": 0.56256,
    "c": 0.2273,
    "h": 279
  },
  "luminance": 0.1595
}

Semantic roles & 50–950 ramp

primary
#6157F5
secondary
#EBEFB9
accent
#E500D7
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #6157F5

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

Preview Lab → · Contrast checker → · Palette generator →

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