#5256E7#5256E7

#5256E7 is a mid, highly saturated blue. Relative luminance 0.142; OKLCH L 53.9% C 0.214 H 275.3°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#5256E7
RGBrgb(82, 86, 231)
HSLhsl(238, 76%, 61%)
HSVhsv(238, 65%, 91%)
CMYKcmyk(64.5%, 62.8%, 0%, 9.4%)
CIE-LABlab(44.54, 42.39, -73.97)
CIE-LCHlch(44.54, 85.25, 299.82°)
OKLaboklab(53.92% 0.0199 -0.2133)
OKLCHoklch(53.92% 0.214 275.3)
XYZxyz(21.2265, 14.2171, 77.2114)
Luminance0.1422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5256E7 #E7E352
analogous
#52A1E7 #5256E7 #9952E7
triadic
#5256E7 #E75256 #56E752
tetradic
#5256E7 #E752A1 #E7E352 #52E799
square
#5256E7 #E752A1 #E7E352 #52E799
split-complementary
#5256E7 #E79952 #A1E752
monochromatic
#171BA7 #1F24DD #5256E7 #888BEE #BDBFF6

Accessibility & contrast

On white

5.46
#5256E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#5256E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5256E7
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5256E7#FFFFFF#000000##FFFFFF
##5256E71.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070EC
Deuteranopia (green-blind)
#0063E4
Tritanopia (blue-blind)
#007B97
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5256e7;
/* rgb */ color: rgb(82, 86, 231);
/* oklch */ color: oklch(53.9% 0.214 275.3);
Tailwind
colors: {
  custom: {
    50: '#9386f0',
    500: '#5256e7',
    950: '#000000',
  },
}
SCSS
$custom: #5256e7;
$custom-light: #9386f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5256e7",
  "rgb": {
    "r": 82,
    "g": 86,
    "b": 231
  },
  "hsl": {
    "h": 238.389,
    "s": 75.635,
    "l": 61.373
  },
  "oklch": {
    "l": 0.53922,
    "c": 0.21418,
    "h": 275.3
  },
  "luminance": 0.14219
}

Semantic roles & 50–950 ramp

primary
#5256E7
secondary
#E6E5AF
accent
#D20ED8
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B17
muted
#7E7C85

Preview Lab

Preview with #5256E7

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

Preview Lab → · Contrast checker → · Palette generator →

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