#5256FA#5256FA

#5256FA is a mid, highly saturated blue. Relative luminance 0.154; OKLCH L 55.5% C 0.238 H 274.4°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#5256FA
RGBrgb(82, 86, 250)
HSLhsl(239, 94%, 65%)
HSVhsv(239, 67%, 98%)
CMYKcmyk(67.2%, 65.6%, 0%, 2%)
CIE-LABlab(46.11, 48.57, -82.07)
CIE-LCHlch(46.11, 95.37, 300.62°)
OKLaboklab(55.55% 0.0183 -0.237)
OKLCHoklch(55.55% 0.238 274.4)
XYZxyz(24.0571, 15.3493, 92.1189)
Luminance0.1535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5256FA #FAF652
analogous
#52AAFA #5256FA #A252FA
triadic
#5256FA #FA5256 #56FA52
tetradic
#5256FA #FA52AA #FAF652 #52FAA2
square
#5256FA #FA52AA #FAF652 #52FAA2
split-complementary
#5256FA #FAA252 #AAFA52
monochromatic
#060BCC #171CF8 #5256FA #8D90FC #C9CAFD

Accessibility & contrast

On white

5.16
#5256FA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#5256FA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5256FA
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5256FA#FFFFFF#000000##FFFFFF
##5256FA1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075FF
Deuteranopia (green-blind)
#0066F7
Tritanopia (blue-blind)
#0081A1
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5256fa;
/* rgb */ color: rgb(82, 86, 250);
/* oklch */ color: oklch(55.5% 0.238 274.4);
Tailwind
colors: {
  custom: {
    50: '#9686fd',
    500: '#5256fa',
    950: '#000000',
  },
}
SCSS
$custom: #5256fa;
$custom-light: #9686fd;
$custom-dark: #000000;
JSON
{
  "hex": "#5256fa",
  "rgb": {
    "r": 82,
    "g": 86,
    "b": 250
  },
  "hsl": {
    "h": 238.571,
    "s": 94.382,
    "l": 65.098
  },
  "oklch": {
    "l": 0.55546,
    "c": 0.23773,
    "h": 274.4
  },
  "luminance": 0.15352
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5256FA

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

Preview Lab → · Contrast checker → · Palette generator →

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