#6151EB#6151EB

#6151EB is a mid, highly saturated blue. Relative luminance 0.144; OKLCH L 54.5% C 0.222 H 280.8°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#6151EB
RGBrgb(97, 81, 235)
HSLhsl(246, 79%, 62%)
HSVhsv(246, 66%, 92%)
CMYKcmyk(58.7%, 65.5%, 0%, 7.8%)
CIE-LABlab(44.83, 48.75, -75.71)
CIE-LCHlch(44.83, 90.04, 302.78°)
OKLaboklab(54.5% 0.0415 -0.218)
OKLCHoklch(54.5% 0.222 280.8)
XYZxyz(22.8629, 14.4228, 80.1603)
Luminance0.1442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6151EB #DBEB51
analogous
#518EEB #6151EB #AE51EB
triadic
#6151EB #EB6151 #51EB61
tetradic
#6151EB #EB518E #DBEB51 #51EBAE
square
#6151EB #EB518E #DBEB51 #51EBAE
split-complementary
#6151EB #EBAE51 #8EEB51
monochromatic
#2414AE #2F1AE5 #6151EB #9388F1 #C5BFF8

Accessibility & contrast

On white

5.41
#6151EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#6151EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6151EB
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6151EB#FFFFFF#000000##FFFFFF
##6151EB1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070F0
Deuteranopia (green-blind)
#0064E8
Tritanopia (blue-blind)
#007997
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #6151eb;
/* rgb */ color: rgb(97, 81, 235);
/* oklch */ color: oklch(54.5% 0.222 280.8);
Tailwind
colors: {
  custom: {
    50: '#9b83f3',
    500: '#6151eb',
    950: '#000000',
  },
}
SCSS
$custom: #6151eb;
$custom-light: #9b83f3;
$custom-dark: #000000;
JSON
{
  "hex": "#6151eb",
  "rgb": {
    "r": 97,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 246.234,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.54504,
    "c": 0.22188,
    "h": 280.8
  },
  "luminance": 0.14424
}

Semantic roles & 50–950 ramp

primary
#6151EB
secondary
#E2E8B0
accent
#DC0AC6
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6151EB

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

Preview Lab → · Contrast checker → · Palette generator →

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