#5250C2#5250C2

#5250C2 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.9% C 0.173 H 278.8°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#5250C2
RGBrgb(82, 80, 194)
HSLhsl(241, 48%, 54%)
HSVhsv(241, 59%, 76%)
CMYKcmyk(57.7%, 58.8%, 0%, 23.9%)
CIE-LABlab(40.29, 33.94, -59.67)
CIE-LCHlch(40.29, 68.64, 299.63°)
OKLaboklab(49.9% 0.0267 -0.1713)
OKLCHoklch(49.9% 0.173 278.8)
XYZxyz(16.0829, 11.4251, 52.3862)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5250C2 #C0C250
analogous
#5087C2 #5250C2 #8B50C2
triadic
#5250C2 #C25250 #50C252
tetradic
#5250C2 #C25087 #C0C250 #50C28B
square
#5250C2 #C25087 #C0C250 #50C28B
split-complementary
#5250C2 #C28B50 #87C250
monochromatic
#282770 #39379E #5250C2 #7F7DD2 #ACABE2

Accessibility & contrast

On white

6.39
#5250C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#5250C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5250C2
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5250C2#FFFFFF#000000##FFFFFF
##5250C21.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C6
Deuteranopia (green-blind)
#005AC0
Tritanopia (blue-blind)
#0B6B81
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5250c2;
/* rgb */ color: rgb(82, 80, 194);
/* oklch */ color: oklch(49.9% 0.173 278.8);
Tailwind
colors: {
  custom: {
    50: '#8d81d5',
    500: '#5250c2',
    950: '#000000',
  },
}
SCSS
$custom: #5250c2;
$custom-light: #8d81d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5250c2",
  "rgb": {
    "r": 82,
    "g": 80,
    "b": 194
  },
  "hsl": {
    "h": 241.053,
    "s": 48.305,
    "l": 53.725
  },
  "oklch": {
    "l": 0.49901,
    "c": 0.17336,
    "h": 278.8
  },
  "luminance": 0.11426
}

Semantic roles & 50–950 ramp

primary
#5250C2
secondary
#CECF9F
accent
#D850D5
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5250C2

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

Preview Lab → · Contrast checker → · Palette generator →

#5250C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva