#6178F5#6178F5

#6178F5 is a mid, vivid blue. Relative luminance 0.226; OKLCH L 62.0% C 0.188 H 272.0°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#6178F5
RGBrgb(97, 120, 245)
HSLhsl(231, 88%, 67%)
HSVhsv(231, 60%, 96%)
CMYKcmyk(60.4%, 51%, 0%, 3.9%)
CIE-LABlab(54.62, 28.78, -65.41)
CIE-LCHlch(54.62, 71.46, 293.75°)
OKLaboklab(61.97% 0.0065 -0.1874)
OKLCHoklch(61.97% 0.188 272)
XYZxyz(28.1222, 22.5646, 89.2419)
Luminance0.2257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6178F5 #F5DE61
analogous
#61C2F5 #6178F5 #9461F5
triadic
#6178F5 #F56178 #78F561
tetradic
#6178F5 #F561C2 #F5DE61 #61F594
square
#6178F5 #F561C2 #F5DE61 #61F594
split-complementary
#6178F5 #F59461 #C2F561
monochromatic
#0D2BCF #2747F1 #6178F5 #9BA9F9 #D4DAFC

Accessibility & contrast

On white

3.81
#6178F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#6178F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6178F5
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6178F5#FFFFFF#000000##000000
##6178F51.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F89F9
Deuteranopia (green-blind)
#007CF2
Tritanopia (blue-blind)
#0095AB
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #6178f5;
/* rgb */ color: rgb(97, 120, 245);
/* oklch */ color: oklch(62.0% 0.188 272.0);
Tailwind
colors: {
  custom: {
    50: '#9a9ef9',
    500: '#6178f5',
    950: '#000000',
  },
}
SCSS
$custom: #6178f5;
$custom-light: #9a9ef9;
$custom-dark: #000000;
JSON
{
  "hex": "#6178f5",
  "rgb": {
    "r": 97,
    "g": 120,
    "b": 245
  },
  "hsl": {
    "h": 230.676,
    "s": 88.095,
    "l": 67.059
  },
  "oklch": {
    "l": 0.61972,
    "c": 0.18753,
    "h": 272
  },
  "luminance": 0.22567
}

Semantic roles & 50–950 ramp

primary
#6178F5
secondary
#F0E9C1
accent
#C101E5
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #6178F5

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

Preview Lab → · Contrast checker → · Palette generator →

#6178F5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva