#5255F6#5255F6

#5255F6 is a mid, highly saturated blue. Relative luminance 0.149; OKLCH L 55.0% C 0.234 H 274.7°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#5255F6
RGBrgb(82, 85, 246)
HSLhsl(239, 90%, 64%)
HSVhsv(239, 67%, 96%)
CMYKcmyk(66.7%, 65.4%, 0%, 3.5%)
CIE-LABlab(45.56, 47.86, -80.75)
CIE-LCHlch(45.56, 93.86, 300.65°)
OKLaboklab(55.04% 0.0194 -0.2331)
OKLCHoklch(55.04% 0.234 274.7)
XYZxyz(23.3572, 14.9425, 88.8242)
Luminance0.1494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5255F6 #F6F352
analogous
#52A7F6 #5255F6 #A152F6
triadic
#5255F6 #F65255 #55F652
tetradic
#5255F6 #F652A7 #F6F352 #52F6A1
square
#5255F6 #F652A7 #F6F352 #52F6A1
split-complementary
#5255F6 #F6A152 #A7F652
monochromatic
#0A0EC3 #181CF3 #5255F6 #8C8EF9 #C6C7FC

Accessibility & contrast

On white

5.26
#5255F6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#5255F6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5255F6
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5255F6#FFFFFF#000000##FFFFFF
##5255F61.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073FB
Deuteranopia (green-blind)
#0064F3
Tritanopia (blue-blind)
#007F9E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5255f6;
/* rgb */ color: rgb(82, 85, 246);
/* oklch */ color: oklch(55.0% 0.234 274.7);
Tailwind
colors: {
  custom: {
    50: '#9685fa',
    500: '#5255f6',
    950: '#000000',
  },
}
SCSS
$custom: #5255f6;
$custom-light: #9685fa;
$custom-dark: #000000;
JSON
{
  "hex": "#5255f6",
  "rgb": {
    "r": 82,
    "g": 85,
    "b": 246
  },
  "hsl": {
    "h": 238.902,
    "s": 90.11,
    "l": 64.314
  },
  "oklch": {
    "l": 0.55041,
    "c": 0.23394,
    "h": 274.7
  },
  "luminance": 0.14945
}

Semantic roles & 50–950 ramp

primary
#5255F6
secondary
#EEEDB5
accent
#E100E6
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B18
muted
#7F7C86

Preview Lab

Preview with #5255F6

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

Preview Lab → · Contrast checker → · Palette generator →

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