#6157F2#6157F2

#6157F2 is a mid, highly saturated blue. Relative luminance 0.158; OKLCH L 56.0% C 0.224 H 279.2°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#6157F2
RGBrgb(97, 87, 242)
HSLhsl(244, 86%, 65%)
HSVhsv(244, 64%, 95%)
CMYKcmyk(59.9%, 64%, 0%, 5.1%)
CIE-LABlab(46.67, 47.48, -76.65)
CIE-LCHlch(46.67, 90.16, 301.78°)
OKLaboklab(56.01% 0.0359 -0.2207)
OKLCHoklch(56.01% 0.224 279.2)
XYZxyz(24.3599, 15.7668, 85.7468)
Luminance0.1577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6157F2 #E8F257
analogous
#579BF2 #6157F2 #AF57F2
triadic
#6157F2 #F26157 #57F261
tetradic
#6157F2 #F2579B #E8F257 #57F2AF
square
#6157F2 #F2579B #E8F257 #57F2AF
split-complementary
#6157F2 #F2AF57 #9BF257
monochromatic
#1A0FC0 #2C1EEE #6157F2 #9690F6 #CCC9FB

Accessibility & contrast

On white

5.06
#6157F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#6157F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6157F2
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6157F2#FFFFFF#000000##FFFFFF
##6157F21.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F7
Deuteranopia (green-blind)
#0068EF
Tritanopia (blue-blind)
#007E9D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #6157f2;
/* rgb */ color: rgb(97, 87, 242);
/* oklch */ color: oklch(56.0% 0.224 279.2);
Tailwind
colors: {
  custom: {
    50: '#9c87f7',
    500: '#6157f2',
    950: '#000000',
  },
}
SCSS
$custom: #6157f2;
$custom-light: #9c87f7;
$custom-dark: #000000;
JSON
{
  "hex": "#6157f2",
  "rgb": {
    "r": 97,
    "g": 87,
    "b": 242
  },
  "hsl": {
    "h": 243.871,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.56007,
    "c": 0.22361,
    "h": 279.2
  },
  "luminance": 0.15769
}

Semantic roles & 50–950 ramp

primary
#6157F2
secondary
#EAEDB8
accent
#E203D4
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #6157F2

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

Preview Lab → · Contrast checker → · Palette generator →

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