#6256EB#6256EB

#6256EB is a mid, highly saturated blue. Relative luminance 0.152; OKLCH L 55.4% C 0.216 H 280.3°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#6256EB
RGBrgb(98, 86, 235)
HSLhsl(245, 79%, 63%)
HSVhsv(245, 63%, 92%)
CMYKcmyk(58.3%, 63.4%, 0%, 7.8%)
CIE-LABlab(45.97, 46.05, -73.84)
CIE-LCHlch(45.97, 87.02, 301.95°)
OKLaboklab(55.35% 0.0386 -0.2125)
OKLCHoklch(55.35% 0.216 280.3)
XYZxyz(23.3555, 15.2488, 80.2937)
Luminance0.1525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6256EB #DFEB56
analogous
#5695EB #6256EB #AC56EB
triadic
#6256EB #EB6256 #56EB62
tetradic
#6256EB #EB5695 #DFEB56 #56EBAC
square
#6256EB #EB5695 #DFEB56 #56EBAC
split-complementary
#6256EB #EBAC56 #95EB56
monochromatic
#2215B2 #2F1FE5 #6256EB #958DF1 #C8C3F8

Accessibility & contrast

On white

5.19
#6256EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#6256EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6256EB
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6256EB#FFFFFF#000000##FFFFFF
##6256EB1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F0
Deuteranopia (green-blind)
#0067E8
Tritanopia (blue-blind)
#007B99
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #6256eb;
/* rgb */ color: rgb(98, 86, 235);
/* oklch */ color: oklch(55.4% 0.216 280.3);
Tailwind
colors: {
  custom: {
    50: '#9b86f2',
    500: '#6256eb',
    950: '#000000',
  },
}
SCSS
$custom: #6256eb;
$custom-light: #9b86f2;
$custom-dark: #000000;
JSON
{
  "hex": "#6256eb",
  "rgb": {
    "r": 98,
    "g": 86,
    "b": 235
  },
  "hsl": {
    "h": 244.832,
    "s": 78.836,
    "l": 62.941
  },
  "oklch": {
    "l": 0.5535,
    "c": 0.21593,
    "h": 280.3
  },
  "luminance": 0.1525
}

Semantic roles & 50–950 ramp

primary
#6256EB
secondary
#E5E9B4
accent
#DB0ACA
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6256EB

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

Preview Lab → · Contrast checker → · Palette generator →

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