#6151E7#6151E7

#6151E7 is a mid, highly saturated blue. Relative luminance 0.142; OKLCH L 54.2% C 0.217 H 281.1°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#6151E7
RGBrgb(97, 81, 231)
HSLhsl(246, 76%, 61%)
HSVhsv(246, 65%, 91%)
CMYKcmyk(58%, 64.9%, 0%, 9.4%)
CIE-LABlab(44.51, 47.53, -73.97)
CIE-LCHlch(44.51, 87.93, 302.72°)
OKLaboklab(54.17% 0.042 -0.2129)
OKLCHoklch(54.17% 0.217 281.1)
XYZxyz(22.2915, 14.1942, 77.1509)
Luminance0.1420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6151E7 #D7E751
analogous
#518CE7 #6151E7 #AC51E7
triadic
#6151E7 #E76151 #51E761
tetradic
#6151E7 #E7518C #D7E751 #51E7AC
square
#6151E7 #E7518C #D7E751 #51E7AC
split-complementary
#6151E7 #E7AC51 #8CE751
monochromatic
#2617A7 #331EDC #6151E7 #9287EE #C3BDF6

Accessibility & contrast

On white

5.47
#6151E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#6151E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6151E7
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6151E7#FFFFFF#000000##FFFFFF
##6151E71.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEC
Deuteranopia (green-blind)
#0064E4
Tritanopia (blue-blind)
#037795
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #6151e7;
/* rgb */ color: rgb(97, 81, 231);
/* oklch */ color: oklch(54.2% 0.217 281.1);
Tailwind
colors: {
  custom: {
    50: '#9b83f0',
    500: '#6151e7',
    950: '#000000',
  },
}
SCSS
$custom: #6151e7;
$custom-light: #9b83f0;
$custom-dark: #000000;
JSON
{
  "hex": "#6151e7",
  "rgb": {
    "r": 97,
    "g": 81,
    "b": 231
  },
  "hsl": {
    "h": 246.4,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.5417,
    "c": 0.21698,
    "h": 281.1
  },
  "luminance": 0.14196
}

Semantic roles & 50–950 ramp

primary
#6151E7
secondary
#E0E6AE
accent
#D80EC2
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6151E7

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

Preview Lab → · Contrast checker → · Palette generator →

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