#6151CD#6151CD

#6151CD is a mid, vivid blue. Relative luminance 0.128; OKLCH L 52.1% C 0.184 H 283.8°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#6151CD
RGBrgb(97, 81, 205)
HSLhsl(248, 55%, 56%)
HSVhsv(248, 60%, 80%)
CMYKcmyk(52.7%, 60.5%, 0%, 19.6%)
CIE-LABlab(42.51, 39.58, -62.38)
CIE-LCHlch(42.51, 73.88, 302.39°)
OKLaboklab(52.09% 0.0441 -0.1788)
OKLCHoklch(52.09% 0.184 283.8)
XYZxyz(18.8883, 12.8330, 59.2275)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6151CD #BDCD51
analogous
#517FCD #6151CD #9F51CD
triadic
#6151CD #CD6151 #51CD61
tetradic
#6151CD #CD517F #BDCD51 #51CD9F
square
#6151CD #CD517F #BDCD51 #51CD9F
split-complementary
#6151CD #CD9F51 #7FCD51
monochromatic
#30257F #4232AF #6151CD #8C81DB #B7B0E8

Accessibility & contrast

On white

5.89
#6151CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#6151CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6151CD
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6151CD#FFFFFF#000000##FFFFFF
##6151CD1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#0060CA
Tritanopia (blue-blind)
#346E87
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6151cd;
/* rgb */ color: rgb(97, 81, 205);
/* oklch */ color: oklch(52.1% 0.184 283.8);
Tailwind
colors: {
  custom: {
    50: '#9782dd',
    500: '#6151cd',
    950: '#000000',
  },
}
SCSS
$custom: #6151cd;
$custom-light: #9782dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6151cd",
  "rgb": {
    "r": 97,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 247.742,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.52088,
    "c": 0.18418,
    "h": 283.8
  },
  "luminance": 0.12834
}

Semantic roles & 50–950 ramp

primary
#6151CD
secondary
#D0D7A3
accent
#DF49CB
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #6151CD

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

Preview Lab → · Contrast checker → · Palette generator →

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