#5271F5#5271F5

#5271F5 is a mid, highly saturated blue. Relative luminance 0.202; OKLCH L 59.8% C 0.200 H 269.5°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#5271F5
RGBrgb(82, 113, 245)
HSLhsl(229, 89%, 64%)
HSVhsv(229, 67%, 96%)
CMYKcmyk(66.5%, 53.9%, 0%, 3.9%)
CIE-LABlab(52.06, 30.65, -69.59)
CIE-LCHlch(52.06, 76.04, 293.77°)
OKLaboklab(59.83% -0.0019 -0.2001)
OKLCHoklch(59.83% 0.2 269.5)
XYZxyz(25.8606, 20.1942, 88.9035)
Luminance0.2020 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271F5 #F5D652
analogous
#52C3F5 #5271F5 #8552F5
triadic
#5271F5 #F55271 #71F552
tetradic
#5271F5 #F552C3 #F5D652 #52F585
square
#5271F5 #F552C3 #F5D652 #52F585
split-complementary
#5271F5 #F58552 #C3F552
monochromatic
#0B2EC1 #1842F2 #5271F5 #8CA0F8 #C6D0FC

Accessibility & contrast

On white

4.17
#5271F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#5271F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5271F5
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271F5#FFFFFF#000000##000000
##5271F51.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0084FA
Deuteranopia (green-blind)
#0075F2
Tritanopia (blue-blind)
#0091A8
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5271f5;
/* rgb */ color: rgb(82, 113, 245);
/* oklch */ color: oklch(59.8% 0.200 269.5);
Tailwind
colors: {
  custom: {
    50: '#9499f9',
    500: '#5271f5',
    950: '#000000',
  },
}
SCSS
$custom: #5271f5;
$custom-light: #9499f9;
$custom-dark: #000000;
JSON
{
  "hex": "#5271f5",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 245
  },
  "hsl": {
    "h": 228.589,
    "s": 89.071,
    "l": 64.118
  },
  "oklch": {
    "l": 0.59825,
    "c": 0.20016,
    "h": 269.5
  },
  "luminance": 0.20197
}

Semantic roles & 50–950 ramp

primary
#5271F5
secondary
#EEE3B5
accent
#BA00E6
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0F0D17
muted
#7E7E85

Preview Lab

Preview with #5271F5

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

Preview Lab → · Contrast checker → · Palette generator →

#5271F5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva