#6178F2#6178F2

#6178F2 is a mid, vivid blue. Relative luminance 0.224; OKLCH L 61.8% C 0.184 H 272.0°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#6178F2
RGBrgb(97, 120, 242)
HSLhsl(230, 85%, 66%)
HSVhsv(230, 60%, 95%)
CMYKcmyk(59.9%, 50.4%, 0%, 5.1%)
CIE-LABlab(54.43, 27.79, -64.05)
CIE-LCHlch(54.43, 69.82, 293.46°)
OKLaboklab(61.77% 0.0063 -0.1834)
OKLCHoklch(61.77% 0.184 272)
XYZxyz(27.6679, 22.3829, 86.8495)
Luminance0.2238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6178F2 #F2DB61
analogous
#61C1F2 #6178F2 #9361F2
triadic
#6178F2 #F26178 #78F261
tetradic
#6178F2 #F261C1 #F2DB61 #61F293
square
#6178F2 #F261C1 #F2DB61 #61F293
split-complementary
#6178F2 #F29361 #C1F261
monochromatic
#102EC8 #2848ED #6178F2 #9AA8F7 #D2D9FB

Accessibility & contrast

On white

3.83
#6178F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#6178F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6178F2
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6178F2#FFFFFF#000000##000000
##6178F21.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3489F6
Deuteranopia (green-blind)
#0A7CEF
Tritanopia (blue-blind)
#0094AA
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #6178f2;
/* rgb */ color: rgb(97, 120, 242);
/* oklch */ color: oklch(61.8% 0.184 272.0);
Tailwind
colors: {
  custom: {
    50: '#9a9ef7',
    500: '#6178f2',
    950: '#000000',
  },
}
SCSS
$custom: #6178f2;
$custom-light: #9a9ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#6178f2",
  "rgb": {
    "r": 97,
    "g": 120,
    "b": 242
  },
  "hsl": {
    "h": 230.483,
    "s": 84.795,
    "l": 66.471
  },
  "oklch": {
    "l": 0.61768,
    "c": 0.18353,
    "h": 272
  },
  "luminance": 0.22385
}

Semantic roles & 50–950 ramp

primary
#6178F2
secondary
#EFE7C0
accent
#BE04E1
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #6178F2

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

Preview Lab → · Contrast checker → · Palette generator →

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