#6151E4#6151E4

#6151E4 is a mid, highly saturated blue. Relative luminance 0.140; OKLCH L 53.9% C 0.213 H 281.4°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#6151E4
RGBrgb(97, 81, 228)
HSLhsl(247, 73%, 61%)
HSVhsv(247, 64%, 89%)
CMYKcmyk(57.5%, 64.5%, 0%, 10.6%)
CIE-LABlab(44.27, 46.61, -72.67)
CIE-LCHlch(44.27, 86.33, 302.68°)
OKLaboklab(53.92% 0.0423 -0.209)
OKLCHoklch(53.92% 0.213 281.4)
XYZxyz(21.8714, 14.0262, 74.9386)
Luminance0.1403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6151E4 #D4E451
analogous
#518AE4 #6151E4 #AB51E4
triadic
#6151E4 #E46151 #51E461
tetradic
#6151E4 #E4518A #D4E451 #51E4AB
square
#6151E4 #E4518A #D4E451 #51E4AB
split-complementary
#6151E4 #E4AB51 #8AE451
monochromatic
#2819A2 #3521D7 #6151E4 #9186EC #C1BBF4

Accessibility & contrast

On white

5.52
#6151E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#6151E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6151E4
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6151E4#FFFFFF#000000##FFFFFF
##6151E41.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE9
Deuteranopia (green-blind)
#0063E1
Tritanopia (blue-blind)
#107693
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #6151e4;
/* rgb */ color: rgb(97, 81, 228);
/* oklch */ color: oklch(53.9% 0.213 281.4);
Tailwind
colors: {
  custom: {
    50: '#9a83ee',
    500: '#6151e4',
    950: '#000000',
  },
}
SCSS
$custom: #6151e4;
$custom-light: #9a83ee;
$custom-dark: #000000;
JSON
{
  "hex": "#6151e4",
  "rgb": {
    "r": 97,
    "g": 81,
    "b": 228
  },
  "hsl": {
    "h": 246.531,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.53922,
    "c": 0.21328,
    "h": 281.4
  },
  "luminance": 0.14028
}

Semantic roles & 50–950 ramp

primary
#6151E4
secondary
#DEE4AC
accent
#D510C0
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #6151E4

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

Preview Lab → · Contrast checker → · Palette generator →

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