#6151CE#6151CE

#6151CE is a mid, vivid blue. Relative luminance 0.129; OKLCH L 52.2% C 0.185 H 283.7°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#6151CE
RGBrgb(97, 81, 206)
HSLhsl(248, 56%, 56%)
HSVhsv(248, 61%, 81%)
CMYKcmyk(52.9%, 60.7%, 0%, 19.2%)
CIE-LABlab(42.58, 39.88, -62.84)
CIE-LCHlch(42.58, 74.43, 302.40°)
OKLaboklab(52.16% 0.044 -0.1802)
OKLCHoklch(52.16% 0.185 283.7)
XYZxyz(19.0094, 12.8814, 59.8653)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6151CE #BECE51
analogous
#5180CE #6151CE #A051CE
triadic
#6151CE #CE6151 #51CE61
tetradic
#6151CE #CE5180 #BECE51 #51CEA0
square
#6151CE #CE5180 #BECE51 #51CEA0
split-complementary
#6151CE #CEA051 #80CE51
monochromatic
#302480 #4232B0 #6151CE #8C81DB #B8B1E9

Accessibility & contrast

On white

5.87
#6151CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#6151CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6151CE
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6151CE#FFFFFF#000000##FFFFFF
##6151CE1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D2
Deuteranopia (green-blind)
#0060CB
Tritanopia (blue-blind)
#336F88
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #6151ce;
/* rgb */ color: rgb(97, 81, 206);
/* oklch */ color: oklch(52.2% 0.185 283.7);
Tailwind
colors: {
  custom: {
    50: '#9782de',
    500: '#6151ce',
    950: '#000000',
  },
}
SCSS
$custom: #6151ce;
$custom-light: #9782de;
$custom-dark: #000000;
JSON
{
  "hex": "#6151ce",
  "rgb": {
    "r": 97,
    "g": 81,
    "b": 206
  },
  "hsl": {
    "h": 247.68,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.52165,
    "c": 0.18547,
    "h": 283.7
  },
  "luminance": 0.12882
}

Semantic roles & 50–950 ramp

primary
#6151CE
secondary
#D1D7A4
accent
#DF48CC
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #6151CE

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

Preview Lab → · Contrast checker → · Palette generator →

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