#6151F6#6151F6

#6151F6 is a mid, highly saturated blue. Relative luminance 0.151; OKLCH L 55.4% C 0.235 H 279.8°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#6151F6
RGBrgb(97, 81, 246)
HSLhsl(246, 90%, 64%)
HSVhsv(246, 67%, 96%)
CMYKcmyk(60.6%, 67.1%, 0%, 3.5%)
CIE-LABlab(45.74, 52.09, -80.40)
CIE-LCHlch(45.74, 95.80, 302.94°)
OKLaboklab(55.44% 0.0401 -0.2317)
OKLCHoklch(55.44% 0.235 279.8)
XYZxyz(24.5015, 15.0782, 88.7902)
Luminance0.1508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6151F6 #E6F651
analogous
#5194F6 #6151F6 #B451F6
triadic
#6151F6 #F66151 #51F661
tetradic
#6151F6 #F65194 #E6F651 #51F6B4
square
#6151F6 #F65194 #E6F651 #51F6B4
split-complementary
#6151F6 #F6B451 #94F651
monochromatic
#1C0AC3 #2C17F3 #6151F6 #968BF9 #CBC5FC

Accessibility & contrast

On white

5.23
#6151F6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#6151F6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6151F6
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6151F6#FFFFFF#000000##FFFFFF
##6151F61.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072FB
Deuteranopia (green-blind)
#0066F3
Tritanopia (blue-blind)
#007C9D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #6151f6;
/* rgb */ color: rgb(97, 81, 246);
/* oklch */ color: oklch(55.4% 0.235 279.8);
Tailwind
colors: {
  custom: {
    50: '#9d83fa',
    500: '#6151f6',
    950: '#000000',
  },
}
SCSS
$custom: #6151f6;
$custom-light: #9d83fa;
$custom-dark: #000000;
JSON
{
  "hex": "#6151f6",
  "rgb": {
    "r": 97,
    "g": 81,
    "b": 246
  },
  "hsl": {
    "h": 245.818,
    "s": 90.164,
    "l": 64.118
  },
  "oklch": {
    "l": 0.55438,
    "c": 0.23518,
    "h": 279.8
  },
  "luminance": 0.1508
}

Semantic roles & 50–950 ramp

primary
#6151F6
secondary
#E9EEB5
accent
#E600CF
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B18
muted
#7F7C86

Preview Lab

Preview with #6151F6

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

Preview Lab → · Contrast checker → · Palette generator →

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