#6166E5#6166E5

#6166E5 is a mid, vivid blue. Relative luminance 0.177; OKLCH L 57.5% C 0.189 H 277.0°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#6166E5
RGBrgb(97, 102, 229)
HSLhsl(238, 72%, 64%)
HSVhsv(238, 58%, 90%)
CMYKcmyk(57.6%, 55.5%, 0%, 10.2%)
CIE-LABlab(49.13, 34.50, -65.33)
CIE-LCHlch(49.13, 73.88, 297.84°)
OKLaboklab(57.52% 0.0229 -0.1874)
OKLCHoklch(57.52% 0.189 277)
XYZxyz(23.8195, 17.6995, 76.2747)
Luminance0.1770 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6166E5 #E5E061
analogous
#61A8E5 #6166E5 #9E61E5
triadic
#6166E5 #E56166 #66E561
tetradic
#6166E5 #E561A8 #E5E061 #61E59E
square
#6166E5 #E561A8 #E5E061 #61E59E
split-complementary
#6166E5 #E59E61 #A8E561
monochromatic
#1D22AF #2C33DC #6166E5 #9699EE #CACCF6

Accessibility & contrast

On white

4.63
#6166E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#6166E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #6166E5
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6166E5#FFFFFF#000000##FFFFFF
##6166E51.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007AE9
Deuteranopia (green-blind)
#006FE2
Tritanopia (blue-blind)
#00849C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #6166e5;
/* rgb */ color: rgb(97, 102, 229);
/* oklch */ color: oklch(57.5% 0.189 277.0);
Tailwind
colors: {
  custom: {
    50: '#9991ee',
    500: '#6166e5',
    950: '#000000',
  },
}
SCSS
$custom: #6166e5;
$custom-light: #9991ee;
$custom-dark: #000000;
JSON
{
  "hex": "#6166e5",
  "rgb": {
    "r": 97,
    "g": 102,
    "b": 229
  },
  "hsl": {
    "h": 237.727,
    "s": 71.739,
    "l": 63.922
  },
  "oklch": {
    "l": 0.57519,
    "c": 0.18878,
    "h": 277
  },
  "luminance": 0.17701
}

Semantic roles & 50–950 ramp

primary
#6166E5
secondary
#E8E6BA
accent
#CC12D4
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0D16
muted
#7F7D84

Preview Lab

Preview with #6166E5

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

Preview Lab → · Contrast checker → · Palette generator →

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