#6171EC#6171EC

#6171EC is a mid, vivid blue. Relative luminance 0.204; OKLCH L 60.0% C 0.184 H 273.9°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#6171EC
RGBrgb(97, 113, 236)
HSLhsl(233, 79%, 65%)
HSVhsv(233, 59%, 93%)
CMYKcmyk(58.9%, 52.1%, 0%, 7.5%)
CIE-LABlab(52.29, 30.09, -64.15)
CIE-LCHlch(52.29, 70.85, 295.13°)
OKLaboklab(60.03% 0.0126 -0.1838)
OKLCHoklch(60.03% 0.184 273.9)
XYZxyz(25.9703, 20.4058, 81.9108)
Luminance0.2041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6171EC #ECDC61
analogous
#61B6EC #6171EC #9761EC
triadic
#6171EC #EC6171 #71EC61
tetradic
#6171EC #EC61B6 #ECDC61 #61EC97
square
#6171EC #EC61B6 #ECDC61 #61EC97
split-complementary
#6171EC #EC9761 #B6EC61
monochromatic
#172ABC #2A40E5 #6171EC #98A2F3 #CED3F9

Accessibility & contrast

On white

4.13
#6171EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#6171EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6171EC
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6171EC#FFFFFF#000000##000000
##6171EC1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2783F0
Deuteranopia (green-blind)
#0077E9
Tritanopia (blue-blind)
#008DA4
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #6171ec;
/* rgb */ color: rgb(97, 113, 236);
/* oklch */ color: oklch(60.0% 0.184 273.9);
Tailwind
colors: {
  custom: {
    50: '#9999f3',
    500: '#6171ec',
    950: '#000000',
  },
}
SCSS
$custom: #6171ec;
$custom-light: #9999f3;
$custom-dark: #000000;
JSON
{
  "hex": "#6171ec",
  "rgb": {
    "r": 97,
    "g": 113,
    "b": 236
  },
  "hsl": {
    "h": 233.094,
    "s": 78.531,
    "l": 65.294
  },
  "oklch": {
    "l": 0.60034,
    "c": 0.18422,
    "h": 273.9
  },
  "luminance": 0.20408
}

Semantic roles & 50–950 ramp

primary
#6171EC
secondary
#ECE6BD
accent
#C30BDB
background
#FAF9FE
surface
#F3F2FD
border
#CDCCD5
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #6171EC

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

Preview Lab → · Contrast checker → · Palette generator →

#6171EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva