#6172F6#6172F6

#6172F6 is a mid, vivid blue. Relative luminance 0.212; OKLCH L 60.9% C 0.196 H 273.6°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#6172F6
RGBrgb(97, 114, 246)
HSLhsl(233, 89%, 67%)
HSVhsv(233, 61%, 96%)
CMYKcmyk(60.6%, 53.7%, 0%, 3.5%)
CIE-LABlab(53.20, 32.74, -68.26)
CIE-LCHlch(53.20, 75.71, 295.62°)
OKLaboklab(60.92% 0.0122 -0.1959)
OKLCHoklch(60.92% 0.196 273.6)
XYZxyz(27.5761, 21.2276, 89.8151)
Luminance0.2123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6172F6 #F6E561
analogous
#61BDF6 #6172F6 #9A61F6
triadic
#6172F6 #F66172 #72F661
tetradic
#6172F6 #F661BD #F6E561 #61F69A
square
#6172F6 #F661BD #F6E561 #61F69A
split-complementary
#6172F6 #F69A61 #BDF661
monochromatic
#0C22D1 #273EF3 #6172F6 #9BA6F9 #D5D9FD

Accessibility & contrast

On white

4.00
#6172F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#6172F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6172F6
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6172F6#FFFFFF#000000##000000
##6172F61.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1386FB
Deuteranopia (green-blind)
#0079F3
Tritanopia (blue-blind)
#0091A9
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #6172f6;
/* rgb */ color: rgb(97, 114, 246);
/* oklch */ color: oklch(60.9% 0.196 273.6);
Tailwind
colors: {
  custom: {
    50: '#9b9afa',
    500: '#6172f6',
    950: '#000000',
  },
}
SCSS
$custom: #6172f6;
$custom-light: #9b9afa;
$custom-dark: #000000;
JSON
{
  "hex": "#6172f6",
  "rgb": {
    "r": 97,
    "g": 114,
    "b": 246
  },
  "hsl": {
    "h": 233.154,
    "s": 89.222,
    "l": 67.255
  },
  "oklch": {
    "l": 0.60923,
    "c": 0.19626,
    "h": 273.6
  },
  "luminance": 0.2123
}

Semantic roles & 50–950 ramp

primary
#6172F6
secondary
#F1ECC2
accent
#CB00E6
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #6172F6

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

Preview Lab → · Contrast checker → · Palette generator →

#6172F6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva