#5256F8#5256F8

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

Color values

HEX#5256F8
RGBrgb(82, 86, 248)
HSLhsl(239, 92%, 65%)
HSVhsv(239, 67%, 97%)
CMYKcmyk(66.9%, 65.3%, 0%, 2.7%)
CIE-LABlab(45.94, 47.92, -81.23)
CIE-LCHlch(45.94, 94.32, 300.54°)
OKLaboklab(55.37% 0.0185 -0.2346)
OKLCHoklch(55.37% 0.235 274.5)
XYZxyz(23.7451, 15.2245, 90.4760)
Luminance0.1523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5256F8 #F8F452
analogous
#52A9F8 #5256F8 #A152F8
triadic
#5256F8 #F85256 #56F852
tetradic
#5256F8 #F852A9 #F8F452 #52F8A1
square
#5256F8 #F852A9 #F8F452 #52F8A1
split-complementary
#5256F8 #F8A152 #A9F852
monochromatic
#080DC8 #171DF6 #5256F8 #8D8FFA #C8C9FD

Accessibility & contrast

On white

5.19
#5256F8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#5256F8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5256F8
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5256F8#FFFFFF#000000##FFFFFF
##5256F81.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)
#0074FD
Deuteranopia (green-blind)
#0065F5
Tritanopia (blue-blind)
#0081A0
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5256f8;
/* rgb */ color: rgb(82, 86, 248);
/* oklch */ color: oklch(55.4% 0.235 274.5);
Tailwind
colors: {
  custom: {
    50: '#9686fc',
    500: '#5256f8',
    950: '#000000',
  },
}
SCSS
$custom: #5256f8;
$custom-light: #9686fc;
$custom-dark: #000000;
JSON
{
  "hex": "#5256f8",
  "rgb": {
    "r": 82,
    "g": 86,
    "b": 248
  },
  "hsl": {
    "h": 238.554,
    "s": 92.222,
    "l": 64.706
  },
  "oklch": {
    "l": 0.55372,
    "c": 0.23529,
    "h": 274.5
  },
  "luminance": 0.15227
}

Semantic roles & 50–950 ramp

primary
#5256F8
secondary
#EFEEB6
accent
#E000E6
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B18
muted
#7F7C86

Preview Lab

Preview with #5256F8

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

Preview Lab → · Contrast checker → · Palette generator →

#5256F8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva