#6151BA#6151BA

#6151BA is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.7% C 0.159 H 286.2°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#6151BA
RGBrgb(97, 81, 186)
HSLhsl(249, 43%, 52%)
HSVhsv(249, 56%, 73%)
CMYKcmyk(47.8%, 56.5%, 0%, 27.1%)
CIE-LABlab(41.17, 33.81, -53.51)
CIE-LCHlch(41.17, 63.30, 302.28°)
OKLaboklab(50.68% 0.0445 -0.1527)
OKLCHoklch(50.68% 0.159 286.2)
XYZxyz(16.7325, 11.9707, 47.8738)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6151BA #AABA51
analogous
#5175BA #6151BA #9651BA
triadic
#6151BA #BA6151 #51BA61
tetradic
#6151BA #BA5175 #AABA51 #51BA96
square
#6151BA #BA5175 #AABA51 #51BA96
split-complementary
#6151BA #BA9651 #75BA51
monochromatic
#332968 #483A93 #6151BA #897DCB #B1A9DD

Accessibility & contrast

On white

6.19
#6151BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#6151BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6151BA
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6151BA#FFFFFF#000000##FFFFFF
##6151BA1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E64BE
Deuteranopia (green-blind)
#095EB8
Tritanopia (blue-blind)
#43687D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6151ba;
/* rgb */ color: rgb(97, 81, 186);
/* oklch */ color: oklch(50.7% 0.159 286.2);
Tailwind
colors: {
  custom: {
    50: '#9482cf',
    500: '#6151ba',
    950: '#000000',
  },
}
SCSS
$custom: #6151ba;
$custom-light: #9482cf;
$custom-dark: #000000;
JSON
{
  "hex": "#6151ba",
  "rgb": {
    "r": 97,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 249.143,
    "s": 43.21,
    "l": 52.353
  },
  "oklch": {
    "l": 0.50676,
    "c": 0.15908,
    "h": 286.2
  },
  "luminance": 0.11971
}

Semantic roles & 50–950 ramp

primary
#6151BA
secondary
#C3CA9D
accent
#D355C0
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0E0A14
muted
#7E7C82

Preview Lab

Preview with #6151BA

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

Preview Lab → · Contrast checker → · Palette generator →

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