#6151C8#6151C8

#6151C8 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.7% C 0.178 H 284.4°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#6151C8
RGBrgb(97, 81, 200)
HSLhsl(248, 52%, 55%)
HSVhsv(248, 60%, 78%)
CMYKcmyk(51.5%, 59.5%, 0%, 21.6%)
CIE-LABlab(42.15, 38.05, -60.08)
CIE-LCHlch(42.15, 71.12, 302.35°)
OKLaboklab(51.71% 0.0443 -0.1721)
OKLCHoklch(51.71% 0.178 284.4)
XYZxyz(18.2944, 12.5954, 56.0996)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6151C8 #B8C851
analogous
#517DC8 #6151C8 #9C51C8
triadic
#6151C8 #C86151 #51C861
tetradic
#6151C8 #C8517D #B8C851 #51C89C
square
#6151C8 #C8517D #B8C851 #51C89C
split-complementary
#6151C8 #C89C51 #7DC851
monochromatic
#312679 #4435A7 #6151C8 #8B80D7 #B5AEE5

Accessibility & contrast

On white

5.97
#6151C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#6151C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6151C8
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6151C8#FFFFFF#000000##FFFFFF
##6151C81.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CC
Deuteranopia (green-blind)
#0060C6
Tritanopia (blue-blind)
#396D85
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6151c8;
/* rgb */ color: rgb(97, 81, 200);
/* oklch */ color: oklch(51.7% 0.178 284.4);
Tailwind
colors: {
  custom: {
    50: '#9682d9',
    500: '#6151c8',
    950: '#000000',
  },
}
SCSS
$custom: #6151c8;
$custom-light: #9682d9;
$custom-dark: #000000;
JSON
{
  "hex": "#6151c8",
  "rgb": {
    "r": 97,
    "g": 81,
    "b": 200
  },
  "hsl": {
    "h": 248.067,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.51707,
    "c": 0.17767,
    "h": 284.4
  },
  "luminance": 0.12596
}

Semantic roles & 50–950 ramp

primary
#6151C8
secondary
#CDD3A1
accent
#DB4CC8
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #6151C8

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

Preview Lab → · Contrast checker → · Palette generator →

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