#6151D8#6151D8

#6151D8 is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.9% C 0.198 H 282.6°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#6151D8
RGBrgb(97, 81, 216)
HSLhsl(247, 63%, 58%)
HSVhsv(247, 63%, 85%)
CMYKcmyk(55.1%, 62.5%, 0%, 15.3%)
CIE-LABlab(43.33, 42.94, -67.36)
CIE-LCHlch(43.33, 79.88, 302.52°)
OKLaboklab(52.95% 0.0434 -0.1935)
OKLCHoklch(52.95% 0.198 282.6)
XYZxyz(20.2631, 13.3829, 66.4678)
Luminance0.1338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6151D8 #C8D851
analogous
#5184D8 #6151D8 #A451D8
triadic
#6151D8 #D86151 #51D861
tetradic
#6151D8 #D85184 #C8D851 #51D8A4
square
#6151D8 #D85184 #C8D851 #51D8A4
split-complementary
#6151D8 #D8A451 #84D851
monochromatic
#2D208F #3D2BC1 #6151D8 #8E83E3 #BCB5EE

Accessibility & contrast

On white

5.71
#6151D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#6151D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6151D8
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6151D8#FFFFFF#000000##FFFFFF
##6151D81.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDC
Deuteranopia (green-blind)
#0062D5
Tritanopia (blue-blind)
#28728D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #6151d8;
/* rgb */ color: rgb(97, 81, 216);
/* oklch */ color: oklch(52.9% 0.198 282.6);
Tailwind
colors: {
  custom: {
    50: '#9883e5',
    500: '#6151d8',
    950: '#000000',
  },
}
SCSS
$custom: #6151d8;
$custom-light: #9883e5;
$custom-dark: #000000;
JSON
{
  "hex": "#6151d8",
  "rgb": {
    "r": 97,
    "g": 81,
    "b": 216
  },
  "hsl": {
    "h": 247.111,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.52949,
    "c": 0.19826,
    "h": 282.6
  },
  "luminance": 0.13384
}

Semantic roles & 50–950 ramp

primary
#6151D8
secondary
#D7DDA8
accent
#E641D3
background
#FAF8FE
surface
#F3EFFC
border
#CDCAD5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #6151D8

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

Preview Lab → · Contrast checker → · Palette generator →

#6151D8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva