#6151E5#6151E5

#6151E5 is a mid, highly saturated blue. Relative luminance 0.141; OKLCH L 54.0% C 0.215 H 281.3°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#6151E5
RGBrgb(97, 81, 229)
HSLhsl(246, 74%, 61%)
HSVhsv(246, 65%, 90%)
CMYKcmyk(57.6%, 64.6%, 0%, 10.2%)
CIE-LABlab(44.35, 46.91, -73.10)
CIE-LCHlch(44.35, 86.86, 302.69°)
OKLaboklab(54% 0.0422 -0.2103)
OKLCHoklch(54% 0.215 281.3)
XYZxyz(22.0106, 14.0819, 75.6718)
Luminance0.1408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6151E5 #D5E551
analogous
#518BE5 #6151E5 #AB51E5
triadic
#6151E5 #E56151 #51E561
tetradic
#6151E5 #E5518B #D5E551 #51E5AB
square
#6151E5 #E5518B #D5E551 #51E5AB
split-complementary
#6151E5 #E5AB51 #8BE551
monochromatic
#2718A3 #3420D8 #6151E5 #9186ED #C2BBF5

Accessibility & contrast

On white

5.50
#6151E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#6151E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6151E5
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6151E5#FFFFFF#000000##FFFFFF
##6151E51.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEA
Deuteranopia (green-blind)
#0063E2
Tritanopia (blue-blind)
#0C7794
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #6151e5;
/* rgb */ color: rgb(97, 81, 229);
/* oklch */ color: oklch(54.0% 0.215 281.3);
Tailwind
colors: {
  custom: {
    50: '#9a83ee',
    500: '#6151e5',
    950: '#000000',
  },
}
SCSS
$custom: #6151e5;
$custom-light: #9a83ee;
$custom-dark: #000000;
JSON
{
  "hex": "#6151e5",
  "rgb": {
    "r": 97,
    "g": 81,
    "b": 229
  },
  "hsl": {
    "h": 246.486,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.54004,
    "c": 0.21452,
    "h": 281.3
  },
  "luminance": 0.14083
}

Semantic roles & 50–950 ramp

primary
#6151E5
secondary
#DFE5AD
accent
#D60FC1
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6151E5

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

Preview Lab → · Contrast checker → · Palette generator →

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