#6256EC#6256EC

#6256EC is a mid, highly saturated blue. Relative luminance 0.153; OKLCH L 55.4% C 0.217 H 280.2°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#6256EC
RGBrgb(98, 86, 236)
HSLhsl(245, 80%, 63%)
HSVhsv(245, 64%, 93%)
CMYKcmyk(58.5%, 63.6%, 0%, 7.5%)
CIE-LABlab(46.05, 46.36, -74.28)
CIE-LCHlch(46.05, 87.56, 301.97°)
OKLaboklab(55.43% 0.0385 -0.2137)
OKLCHoklch(55.43% 0.217 280.2)
XYZxyz(23.5003, 15.3067, 81.0567)
Luminance0.1531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6256EC #E0EC56
analogous
#5695EC #6256EC #AD56EC
triadic
#6256EC #EC6256 #56EC62
tetradic
#6256EC #EC5695 #E0EC56 #56ECAD
square
#6256EC #EC5695 #E0EC56 #56ECAD
split-complementary
#6256EC #ECAD56 #95EC56
monochromatic
#2114B3 #2F1FE6 #6256EC #958DF2 #C8C4F8

Accessibility & contrast

On white

5.17
#6256EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#6256EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6256EC
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6256EC#FFFFFF#000000##FFFFFF
##6256EC1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F1
Deuteranopia (green-blind)
#0067E9
Tritanopia (blue-blind)
#007C99
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #6256ec;
/* rgb */ color: rgb(98, 86, 236);
/* oklch */ color: oklch(55.4% 0.217 280.2);
Tailwind
colors: {
  custom: {
    50: '#9c86f3',
    500: '#6256ec',
    950: '#000000',
  },
}
SCSS
$custom: #6256ec;
$custom-light: #9c86f3;
$custom-dark: #000000;
JSON
{
  "hex": "#6256ec",
  "rgb": {
    "r": 98,
    "g": 86,
    "b": 236
  },
  "hsl": {
    "h": 244.8,
    "s": 79.787,
    "l": 63.137
  },
  "oklch": {
    "l": 0.55431,
    "c": 0.21717,
    "h": 280.2
  },
  "luminance": 0.15308
}

Semantic roles & 50–950 ramp

primary
#6256EC
secondary
#E5EAB4
accent
#DC09CB
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6256EC

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

Preview Lab → · Contrast checker → · Palette generator →

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