#6151CC#6151CC

#6151CC is a mid, vivid blue. Relative luminance 0.128; OKLCH L 52.0% C 0.183 H 284.0°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#6151CC
RGBrgb(97, 81, 204)
HSLhsl(248, 55%, 56%)
HSVhsv(248, 60%, 80%)
CMYKcmyk(52.5%, 60.3%, 0%, 20%)
CIE-LABlab(42.44, 39.27, -61.92)
CIE-LCHlch(42.44, 73.33, 302.38°)
OKLaboklab(52.01% 0.0441 -0.1775)
OKLCHoklch(52.01% 0.183 284)
XYZxyz(18.7680, 12.7848, 58.5938)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6151CC #BCCC51
analogous
#517ECC #6151CC #9E51CC
triadic
#6151CC #CC6151 #51CC61
tetradic
#6151CC #CC517E #BCCC51 #51CC9E
square
#6151CC #CC517E #BCCC51 #51CC9E
split-complementary
#6151CC #CC9E51 #7ECC51
monochromatic
#30257E #4333AD #6151CC #8C80DA #B7B0E8

Accessibility & contrast

On white

5.90
#6151CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#6151CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6151CC
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6151CC#FFFFFF#000000##FFFFFF
##6151CC1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#0060C9
Tritanopia (blue-blind)
#356E87
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6151cc;
/* rgb */ color: rgb(97, 81, 204);
/* oklch */ color: oklch(52.0% 0.183 284.0);
Tailwind
colors: {
  custom: {
    50: '#9782dc',
    500: '#6151cc',
    950: '#000000',
  },
}
SCSS
$custom: #6151cc;
$custom-light: #9782dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6151cc",
  "rgb": {
    "r": 97,
    "g": 81,
    "b": 204
  },
  "hsl": {
    "h": 247.805,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.52011,
    "c": 0.18288,
    "h": 284
  },
  "luminance": 0.12786
}

Semantic roles & 50–950 ramp

primary
#6151CC
secondary
#CFD6A3
accent
#DE4ACB
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #6151CC

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

Preview Lab → · Contrast checker → · Palette generator →

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