#6166E7#6166E7

#6166E7 is a mid, vivid blue. Relative luminance 0.178; OKLCH L 57.7% C 0.191 H 276.9°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#6166E7
RGBrgb(97, 102, 231)
HSLhsl(238, 74%, 64%)
HSVhsv(238, 58%, 91%)
CMYKcmyk(58%, 55.8%, 0%, 9.4%)
CIE-LABlab(49.27, 35.15, -66.24)
CIE-LCHlch(49.27, 74.98, 297.95°)
OKLaboklab(57.67% 0.023 -0.19)
OKLCHoklch(57.67% 0.191 276.9)
XYZxyz(24.1003, 17.8119, 77.7539)
Luminance0.1781 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6166E7 #E7E261
analogous
#61A9E7 #6166E7 #9F61E7
triadic
#6166E7 #E76166 #66E761
tetradic
#6166E7 #E761A9 #E7E261 #61E79F
square
#6166E7 #E761A9 #E7E261 #61E79F
split-complementary
#6166E7 #E79F61 #A9E761
monochromatic
#1B21B2 #2C33DF #6166E7 #9699EF #CBCDF7

Accessibility & contrast

On white

4.60
#6166E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#6166E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #6166E7
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6166E7#FFFFFF#000000##FFFFFF
##6166E71.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007BEB
Deuteranopia (green-blind)
#0070E4
Tritanopia (blue-blind)
#00849D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #6166e7;
/* rgb */ color: rgb(97, 102, 231);
/* oklch */ color: oklch(57.7% 0.191 276.9);
Tailwind
colors: {
  custom: {
    50: '#9991ef',
    500: '#6166e7',
    950: '#000000',
  },
}
SCSS
$custom: #6166e7;
$custom-light: #9991ef;
$custom-dark: #000000;
JSON
{
  "hex": "#6166e7",
  "rgb": {
    "r": 97,
    "g": 102,
    "b": 231
  },
  "hsl": {
    "h": 237.761,
    "s": 73.626,
    "l": 64.314
  },
  "oklch": {
    "l": 0.57665,
    "c": 0.19142,
    "h": 276.9
  },
  "luminance": 0.17814
}

Semantic roles & 50–950 ramp

primary
#6166E7
secondary
#E9E7BB
accent
#CE10D6
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0D17
muted
#7F7D85

Preview Lab

Preview with #6166E7

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

Preview Lab → · Contrast checker → · Palette generator →

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