#6151D2#6151D2

#6151D2 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 52.5% C 0.191 H 283.3°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#6151D2
RGBrgb(97, 81, 210)
HSLhsl(247, 59%, 57%)
HSVhsv(247, 61%, 82%)
CMYKcmyk(53.8%, 61.4%, 0%, 17.6%)
CIE-LABlab(42.88, 41.11, -64.66)
CIE-LCHlch(42.88, 76.62, 302.45°)
OKLaboklab(52.48% 0.0438 -0.1855)
OKLCHoklch(52.48% 0.191 283.3)
XYZxyz(19.5015, 13.0783, 62.4570)
Luminance0.1308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6151D2 #C2D251
analogous
#5182D2 #6151D2 #A251D2
triadic
#6151D2 #D26151 #51D261
tetradic
#6151D2 #D25182 #C2D251 #51D2A2
square
#6151D2 #D25182 #C2D251 #51D2A2
split-complementary
#6151D2 #D2A251 #82D251
monochromatic
#2F2386 #402FB7 #6151D2 #8D82DF #B9B2EB

Accessibility & contrast

On white

5.81
#6151D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#6151D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6151D2
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6151D2#FFFFFF#000000##FFFFFF
##6151D21.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D6
Deuteranopia (green-blind)
#0061CF
Tritanopia (blue-blind)
#2F708A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #6151d2;
/* rgb */ color: rgb(97, 81, 210);
/* oklch */ color: oklch(52.5% 0.191 283.3);
Tailwind
colors: {
  custom: {
    50: '#9783e1',
    500: '#6151d2',
    950: '#000000',
  },
}
SCSS
$custom: #6151d2;
$custom-light: #9783e1;
$custom-dark: #000000;
JSON
{
  "hex": "#6151d2",
  "rgb": {
    "r": 97,
    "g": 81,
    "b": 210
  },
  "hsl": {
    "h": 247.442,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52476,
    "c": 0.19062,
    "h": 283.3
  },
  "luminance": 0.13079
}

Semantic roles & 50–950 ramp

primary
#6151D2
secondary
#D3DAA5
accent
#E246CF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0F0A15
muted
#7E7C83

Preview Lab

Preview with #6151D2

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

Preview Lab → · Contrast checker → · Palette generator →

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