#6166EC#6166EC

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

Color values

HEX#6166EC
RGBrgb(97, 102, 236)
HSLhsl(238, 79%, 65%)
HSVhsv(238, 59%, 93%)
CMYKcmyk(58.9%, 56.8%, 0%, 7.5%)
CIE-LABlab(49.62, 36.75, -68.48)
CIE-LCHlch(49.62, 77.72, 298.22°)
OKLaboklab(58.03% 0.023 -0.1966)
OKLCHoklch(58.03% 0.198 276.7)
XYZxyz(24.8166, 18.0984, 81.5262)
Luminance0.1810 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6166EC #ECE761
analogous
#61ABEC #6166EC #A261EC
triadic
#6166EC #EC6166 #66EC61
tetradic
#6166EC #EC61AB #ECE761 #61ECA2
square
#6166EC #EC61AB #ECE761 #61ECA2
split-complementary
#6166EC #ECA261 #ABEC61
monochromatic
#171DBC #2A31E5 #6166EC #989BF3 #CED0F9

Accessibility & contrast

On white

4.55
#6166EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#6166EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6166EC
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6166EC#FFFFFF#000000##000000
##6166EC1.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6166ec;
/* rgb */ color: rgb(97, 102, 236);
/* oklch */ color: oklch(58.0% 0.198 276.7);
Tailwind
colors: {
  custom: {
    50: '#9a91f3',
    500: '#6166ec',
    950: '#000000',
  },
}
SCSS
$custom: #6166ec;
$custom-light: #9a91f3;
$custom-dark: #000000;
JSON
{
  "hex": "#6166ec",
  "rgb": {
    "r": 97,
    "g": 102,
    "b": 236
  },
  "hsl": {
    "h": 237.842,
    "s": 78.531,
    "l": 65.294
  },
  "oklch": {
    "l": 0.58033,
    "c": 0.19798,
    "h": 276.7
  },
  "luminance": 0.181
}

Semantic roles & 50–950 ramp

primary
#6166EC
secondary
#ECEABD
accent
#D30BDB
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0D17
muted
#7F7D85

Preview Lab

Preview with #6166EC

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

Preview Lab → · Contrast checker → · Palette generator →

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