#6151F2#6151F2

#6151F2 is a mid, highly saturated blue. Relative luminance 0.148; OKLCH L 55.1% C 0.230 H 280.2°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#6151F2
RGBrgb(97, 81, 242)
HSLhsl(246, 86%, 63%)
HSVhsv(246, 67%, 95%)
CMYKcmyk(59.9%, 66.5%, 0%, 5.1%)
CIE-LABlab(45.41, 50.88, -78.71)
CIE-LCHlch(45.41, 93.72, 302.88°)
OKLaboklab(55.1% 0.0406 -0.2268)
OKLCHoklch(55.1% 0.23 280.2)
XYZxyz(23.8941, 14.8353, 85.5916)
Luminance0.1484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6151F2 #E2F251
analogous
#5191F2 #6151F2 #B151F2
triadic
#6151F2 #F26151 #51F261
tetradic
#6151F2 #F25191 #E2F251 #51F2B1
square
#6151F2 #F25191 #E2F251 #51F2B1
split-complementary
#6151F2 #F2B151 #91F251
monochromatic
#1F0EBB #2D18EE #6151F2 #958AF6 #C8C3FB

Accessibility & contrast

On white

5.29
#6151F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#6151F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6151F2
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6151F2#FFFFFF#000000##FFFFFF
##6151F21.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F7
Deuteranopia (green-blind)
#0065EF
Tritanopia (blue-blind)
#007B9B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #6151f2;
/* rgb */ color: rgb(97, 81, 242);
/* oklch */ color: oklch(55.1% 0.230 280.2);
Tailwind
colors: {
  custom: {
    50: '#9c83f8',
    500: '#6151f2',
    950: '#000000',
  },
}
SCSS
$custom: #6151f2;
$custom-light: #9c83f8;
$custom-dark: #000000;
JSON
{
  "hex": "#6151f2",
  "rgb": {
    "r": 97,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 245.963,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.55096,
    "c": 0.23038,
    "h": 280.2
  },
  "luminance": 0.14837
}

Semantic roles & 50–950 ramp

primary
#6151F2
secondary
#E6ECB3
accent
#E303CC
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #6151F2

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

Preview Lab → · Contrast checker → · Palette generator →

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