#6172F1#6172F1

#6172F1 is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.6% C 0.190 H 273.6°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#6172F1
RGBrgb(97, 114, 241)
HSLhsl(233, 84%, 66%)
HSVhsv(233, 60%, 95%)
CMYKcmyk(59.8%, 52.7%, 0%, 5.5%)
CIE-LABlab(52.87, 31.11, -66.01)
CIE-LCHlch(52.87, 72.98, 295.23°)
OKLaboklab(60.57% 0.0119 -0.1893)
OKLCHoklch(60.57% 0.19 273.6)
XYZxyz(26.8190, 20.9248, 85.8276)
Luminance0.2093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6172F1 #F1E061
analogous
#61BAF1 #6172F1 #9861F1
triadic
#6172F1 #F16172 #72F161
tetradic
#6172F1 #F161BA #F1E061 #61F198
square
#6172F1 #F161BA #F1E061 #61F198
split-complementary
#6172F1 #F19861 #BAF161
monochromatic
#1227C6 #2940EC #6172F1 #99A4F6 #D1D6FB

Accessibility & contrast

On white

4.05
#6172F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#6172F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6172F1
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6172F1#FFFFFF#000000##000000
##6172F11.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2185F5
Deuteranopia (green-blind)
#0078EE
Tritanopia (blue-blind)
#0090A7
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #6172f1;
/* rgb */ color: rgb(97, 114, 241);
/* oklch */ color: oklch(60.6% 0.190 273.6);
Tailwind
colors: {
  custom: {
    50: '#9a9af6',
    500: '#6172f1',
    950: '#000000',
  },
}
SCSS
$custom: #6172f1;
$custom-light: #9a9af6;
$custom-dark: #000000;
JSON
{
  "hex": "#6172f1",
  "rgb": {
    "r": 97,
    "g": 114,
    "b": 241
  },
  "hsl": {
    "h": 232.917,
    "s": 83.721,
    "l": 66.275
  },
  "oklch": {
    "l": 0.6057,
    "c": 0.18964,
    "h": 273.6
  },
  "luminance": 0.20927
}

Semantic roles & 50–950 ramp

primary
#6172F1
secondary
#EEE9BF
accent
#C605E0
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #6172F1

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

Preview Lab → · Contrast checker → · Palette generator →

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