#6166EB#6166EB

#6166EB is a mid, vivid blue. Relative luminance 0.180; OKLCH L 58.0% C 0.197 H 276.7°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#6166EB
RGBrgb(97, 102, 235)
HSLhsl(238, 78%, 65%)
HSVhsv(238, 59%, 92%)
CMYKcmyk(58.7%, 56.6%, 0%, 7.8%)
CIE-LABlab(49.55, 36.43, -68.03)
CIE-LCHlch(49.55, 77.17, 298.17°)
OKLaboklab(57.96% 0.023 -0.1953)
OKLCHoklch(57.96% 0.197 276.7)
XYZxyz(24.6717, 18.0404, 80.7632)
Luminance0.1804 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6166EB #EBE661
analogous
#61ABEB #6166EB #A161EB
triadic
#6166EB #EB6166 #66EB61
tetradic
#6166EB #EB61AB #EBE661 #61EBA1
square
#6166EB #EB61AB #EBE661 #61EBA1
split-complementary
#6166EB #EBA161 #ABEB61
monochromatic
#181DBA #2B31E4 #6166EB #979BF2 #CECFF9

Accessibility & contrast

On white

4.56
#6166EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#6166EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6166EB
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6166EB#FFFFFF#000000##000000
##6166EB1.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CEF
Deuteranopia (green-blind)
#0070E8
Tritanopia (blue-blind)
#00869F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #6166eb;
/* rgb */ color: rgb(97, 102, 235);
/* oklch */ color: oklch(58.0% 0.197 276.7);
Tailwind
colors: {
  custom: {
    50: '#9a91f2',
    500: '#6166eb',
    950: '#000000',
  },
}
SCSS
$custom: #6166eb;
$custom-light: #9a91f2;
$custom-dark: #000000;
JSON
{
  "hex": "#6166eb",
  "rgb": {
    "r": 97,
    "g": 102,
    "b": 235
  },
  "hsl": {
    "h": 237.826,
    "s": 77.528,
    "l": 65.098
  },
  "oklch": {
    "l": 0.57959,
    "c": 0.19668,
    "h": 276.7
  },
  "luminance": 0.18042
}

Semantic roles & 50–950 ramp

primary
#6166EB
secondary
#EBEABD
accent
#D20CDA
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0D17
muted
#7F7D85

Preview Lab

Preview with #6166EB

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

Preview Lab → · Contrast checker → · Palette generator →

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