#6256F2#6256F2

#6256F2 is a mid, highly saturated blue. Relative luminance 0.157; OKLCH L 55.9% C 0.225 H 279.7°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#6256F2
RGBrgb(98, 86, 242)
HSLhsl(245, 86%, 64%)
HSVhsv(245, 64%, 95%)
CMYKcmyk(59.5%, 64.5%, 0%, 5.1%)
CIE-LABlab(46.53, 48.21, -76.87)
CIE-LCHlch(46.53, 90.74, 302.09°)
OKLaboklab(55.92% 0.0379 -0.2214)
OKLCHoklch(55.92% 0.225 279.7)
XYZxyz(24.3867, 15.6613, 85.7250)
Luminance0.1566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6256F2 #E6F256
analogous
#5698F2 #6256F2 #B056F2
triadic
#6256F2 #F26256 #56F262
tetradic
#6256F2 #F25698 #E6F256 #56F2B0
square
#6256F2 #F25698 #E6F256 #56F2B0
split-complementary
#6256F2 #F2B056 #98F256
monochromatic
#1C0FBF #2D1DEE #6256F2 #978FF6 #CCC8FB

Accessibility & contrast

On white

5.08
#6256F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#6256F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6256F2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6256F2#FFFFFF#000000##FFFFFF
##6256F21.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F7
Deuteranopia (green-blind)
#0068EF
Tritanopia (blue-blind)
#007E9C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #6256f2;
/* rgb */ color: rgb(98, 86, 242);
/* oklch */ color: oklch(55.9% 0.225 279.7);
Tailwind
colors: {
  custom: {
    50: '#9d87f7',
    500: '#6256f2',
    950: '#000000',
  },
}
SCSS
$custom: #6256f2;
$custom-light: #9d87f7;
$custom-dark: #000000;
JSON
{
  "hex": "#6256f2",
  "rgb": {
    "r": 98,
    "g": 86,
    "b": 242
  },
  "hsl": {
    "h": 244.615,
    "s": 85.714,
    "l": 64.314
  },
  "oklch": {
    "l": 0.55924,
    "c": 0.22458,
    "h": 279.7
  },
  "luminance": 0.15663
}

Semantic roles & 50–950 ramp

primary
#6256F2
secondary
#E9EDB7
accent
#E203D1
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #6256F2

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

Preview Lab → · Contrast checker → · Palette generator →

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