#6172EA#6172EA

#6172EA is a mid, vivid blue. Relative luminance 0.205; OKLCH L 60.1% C 0.180 H 273.6°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#6172EA
RGBrgb(97, 114, 234)
HSLhsl(233, 77%, 65%)
HSVhsv(233, 59%, 92%)
CMYKcmyk(58.5%, 51.3%, 0%, 8.2%)
CIE-LABlab(52.41, 28.83, -62.84)
CIE-LCHlch(52.41, 69.13, 294.64°)
OKLaboklab(60.08% 0.0115 -0.1799)
OKLCHoklch(60.08% 0.18 273.6)
XYZxyz(25.7935, 20.5145, 80.4264)
Luminance0.2052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6172EA #EAD961
analogous
#61B6EA #6172EA #9561EA
triadic
#6172EA #EA6172 #72EA61
tetradic
#6172EA #EA61B6 #EAD961 #61EA95
square
#6172EA #EA61B6 #EAD961 #61EA95
split-complementary
#6172EA #EA9561 #B6EA61
monochromatic
#182CB8 #2B42E3 #6172EA #97A2F1 #CDD2F8

Accessibility & contrast

On white

4.11
#6172EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#6172EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6172EA
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6172EA#FFFFFF#000000##000000
##6172EA1.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D83EE
Deuteranopia (green-blind)
#0477E7
Tritanopia (blue-blind)
#008EA3
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #6172ea;
/* rgb */ color: rgb(97, 114, 234);
/* oklch */ color: oklch(60.1% 0.180 273.6);
Tailwind
colors: {
  custom: {
    50: '#999af1',
    500: '#6172ea',
    950: '#000000',
  },
}
SCSS
$custom: #6172ea;
$custom-light: #999af1;
$custom-dark: #000000;
JSON
{
  "hex": "#6172ea",
  "rgb": {
    "r": 97,
    "g": 114,
    "b": 234
  },
  "hsl": {
    "h": 232.555,
    "s": 76.536,
    "l": 64.902
  },
  "oklch": {
    "l": 0.60084,
    "c": 0.18028,
    "h": 273.6
  },
  "luminance": 0.20517
}

Semantic roles & 50–950 ramp

primary
#6172EA
secondary
#EBE5BC
accent
#BF0DD9
background
#FAF9FE
surface
#F3F2FD
border
#CDCCD5
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #6172EA

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

Preview Lab → · Contrast checker → · Palette generator →

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