#5255E7#5255E7

#5255E7 is a mid, highly saturated blue. Relative luminance 0.141; OKLCH L 53.8% C 0.215 H 275.5°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#5255E7
RGBrgb(82, 85, 231)
HSLhsl(239, 76%, 61%)
HSVhsv(239, 65%, 91%)
CMYKcmyk(64.5%, 63.2%, 0%, 9.4%)
CIE-LABlab(44.32, 42.99, -74.33)
CIE-LCHlch(44.32, 85.87, 300.04°)
OKLaboklab(53.76% 0.0206 -0.2143)
OKLCHoklch(53.76% 0.215 275.5)
XYZxyz(21.1472, 14.0585, 77.1850)
Luminance0.1406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5255E7 #E7E452
analogous
#52A0E7 #5255E7 #9A52E7
triadic
#5255E7 #E75255 #55E752
tetradic
#5255E7 #E752A0 #E7E452 #52E79A
square
#5255E7 #E752A0 #E7E452 #52E79A
split-complementary
#5255E7 #E79A52 #A0E752
monochromatic
#171AA7 #1F23DD #5255E7 #888AEE #BDBFF6

Accessibility & contrast

On white

5.51
#5255E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#5255E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5255E7
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5255E7#FFFFFF#000000##FFFFFF
##5255E71.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEC
Deuteranopia (green-blind)
#0062E4
Tritanopia (blue-blind)
#007A96
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5255e7;
/* rgb */ color: rgb(82, 85, 231);
/* oklch */ color: oklch(53.8% 0.215 275.5);
Tailwind
colors: {
  custom: {
    50: '#9385f0',
    500: '#5255e7',
    950: '#000000',
  },
}
SCSS
$custom: #5255e7;
$custom-light: #9385f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5255e7",
  "rgb": {
    "r": 82,
    "g": 85,
    "b": 231
  },
  "hsl": {
    "h": 238.792,
    "s": 75.635,
    "l": 61.373
  },
  "oklch": {
    "l": 0.53757,
    "c": 0.21533,
    "h": 275.5
  },
  "luminance": 0.1406
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5255E7

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

Preview Lab → · Contrast checker → · Palette generator →

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