#6251FB#6251FB

#6251FB is a mid, highly saturated blue. Relative luminance 0.154; OKLCH L 55.9% C 0.241 H 279.7°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#6251FB
RGBrgb(98, 81, 251)
HSLhsl(246, 96%, 65%)
HSVhsv(246, 68%, 98%)
CMYKcmyk(61%, 67.7%, 0%, 1.6%)
CIE-LABlab(46.24, 53.74, -82.38)
CIE-LCHlch(46.24, 98.36, 303.12°)
OKLaboklab(55.94% 0.0406 -0.2375)
OKLCHoklch(55.94% 0.241 279.7)
XYZxyz(25.3865, 15.4446, 92.8914)
Luminance0.1545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6251FB #EAFB51
analogous
#5195FB #6251FB #B751FB
triadic
#6251FB #FB6251 #51FB62
tetradic
#6251FB #FB5195 #EAFB51 #51FBB7
square
#6251FB #FB5195 #EAFB51 #51FBB7
split-complementary
#6251FB #FBB751 #95FB51
monochromatic
#1905CD #2C15FA #6251FB #988DFC #CEC9FE

Accessibility & contrast

On white

5.14
#6251FB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#6251FB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6251FB
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6251FB#FFFFFF#000000##FFFFFF
##6251FB1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074FF
Deuteranopia (green-blind)
#0067F8
Tritanopia (blue-blind)
#007EA0
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #6251fb;
/* rgb */ color: rgb(98, 81, 251);
/* oklch */ color: oklch(55.9% 0.241 279.7);
Tailwind
colors: {
  custom: {
    50: '#9e84fe',
    500: '#6251fb',
    950: '#000000',
  },
}
SCSS
$custom: #6251fb;
$custom-light: #9e84fe;
$custom-dark: #000000;
JSON
{
  "hex": "#6251fb",
  "rgb": {
    "r": 98,
    "g": 81,
    "b": 251
  },
  "hsl": {
    "h": 246,
    "s": 95.506,
    "l": 65.098
  },
  "oklch": {
    "l": 0.55943,
    "c": 0.24096,
    "h": 279.7
  },
  "luminance": 0.15447
}

Semantic roles & 50–950 ramp

primary
#6251FB
secondary
#EBF1B7
accent
#E600CF
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B18
muted
#7F7C86

Preview Lab

Preview with #6251FB

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

Preview Lab → · Contrast checker → · Palette generator →

#6251FB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva