#6151CB#6151CB

#6151CB is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.9% C 0.182 H 284.1°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#6151CB
RGBrgb(97, 81, 203)
HSLhsl(248, 54%, 56%)
HSVhsv(248, 60%, 80%)
CMYKcmyk(52.2%, 60.1%, 0%, 20.4%)
CIE-LABlab(42.36, 38.97, -61.46)
CIE-LCHlch(42.36, 72.78, 302.37°)
OKLaboklab(51.93% 0.0442 -0.1761)
OKLCHoklch(51.93% 0.182 284.1)
XYZxyz(18.6484, 12.7370, 57.9642)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6151CB #BBCB51
analogous
#517ECB #6151CB #9E51CB
triadic
#6151CB #CB6151 #51CB61
tetradic
#6151CB #CB517E #BBCB51 #51CB9E
square
#6151CB #CB517E #BBCB51 #51CB9E
split-complementary
#6151CB #CB9E51 #7ECB51
monochromatic
#31257C #4333AC #6151CB #8C80D9 #B7AFE7

Accessibility & contrast

On white

5.92
#6151CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#6151CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6151CB
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6151CB#FFFFFF#000000##FFFFFF
##6151CB1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#0060C8
Tritanopia (blue-blind)
#366E86
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6151cb;
/* rgb */ color: rgb(97, 81, 203);
/* oklch */ color: oklch(51.9% 0.182 284.1);
Tailwind
colors: {
  custom: {
    50: '#9682dc',
    500: '#6151cb',
    950: '#000000',
  },
}
SCSS
$custom: #6151cb;
$custom-light: #9682dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6151cb",
  "rgb": {
    "r": 97,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 247.869,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51935,
    "c": 0.18158,
    "h": 284.1
  },
  "luminance": 0.12738
}

Semantic roles & 50–950 ramp

primary
#6151CB
secondary
#CFD5A3
accent
#DD4ACA
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #6151CB

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

Preview Lab → · Contrast checker → · Palette generator →

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