#6166E4#6166E4

#6166E4 is a mid, vivid blue. Relative luminance 0.176; OKLCH L 57.4% C 0.187 H 277.0°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#6166E4
RGBrgb(97, 102, 228)
HSLhsl(238, 71%, 64%)
HSVhsv(238, 57%, 89%)
CMYKcmyk(57.5%, 55.3%, 0%, 10.6%)
CIE-LABlab(49.06, 34.18, -64.88)
CIE-LCHlch(49.06, 73.33, 297.78°)
OKLaboklab(57.45% 0.0229 -0.186)
OKLCHoklch(57.45% 0.187 277)
XYZxyz(23.6802, 17.6439, 75.5415)
Luminance0.1765 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6166E4 #E4DF61
analogous
#61A7E4 #6166E4 #9D61E4
triadic
#6166E4 #E46166 #66E461
tetradic
#6166E4 #E461A7 #E4DF61 #61E49D
square
#6166E4 #E461A7 #E4DF61 #61E49D
split-complementary
#6166E4 #E49D61 #A7E461
monochromatic
#1E23AD #2D33DB #6166E4 #9599ED #CACBF6

Accessibility & contrast

On white

4.64
#6166E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#6166E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #6166E4
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6166E4#FFFFFF#000000##FFFFFF
##6166E41.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007AE8
Deuteranopia (green-blind)
#006FE1
Tritanopia (blue-blind)
#04839B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #6166e4;
/* rgb */ color: rgb(97, 102, 228);
/* oklch */ color: oklch(57.4% 0.187 277.0);
Tailwind
colors: {
  custom: {
    50: '#9991ed',
    500: '#6166e4',
    950: '#000000',
  },
}
SCSS
$custom: #6166e4;
$custom-light: #9991ed;
$custom-dark: #000000;
JSON
{
  "hex": "#6166e4",
  "rgb": {
    "r": 97,
    "g": 102,
    "b": 228
  },
  "hsl": {
    "h": 237.71,
    "s": 70.811,
    "l": 63.725
  },
  "oklch": {
    "l": 0.57446,
    "c": 0.18745,
    "h": 277
  },
  "luminance": 0.17646
}

Semantic roles & 50–950 ramp

primary
#6166E4
secondary
#E7E6B9
accent
#CB13D3
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0D16
muted
#7F7D84

Preview Lab

Preview with #6166E4

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

Preview Lab → · Contrast checker → · Palette generator →

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