#525CD7#525CD7

#525CD7 is a mid, vivid blue. Relative luminance 0.144; OKLCH L 53.7% C 0.186 H 274.7°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#525CD7
RGBrgb(82, 92, 215)
HSLhsl(235, 62%, 58%)
HSVhsv(235, 62%, 84%)
CMYKcmyk(61.9%, 57.2%, 0%, 15.7%)
CIE-LABlab(44.73, 33.45, -64.56)
CIE-LCHlch(44.73, 72.71, 297.39°)
OKLaboklab(53.68% 0.0153 -0.1856)
OKLCHoklch(53.68% 0.186 274.7)
XYZxyz(19.5685, 14.3528, 66.0160)
Luminance0.1435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#525CD7 #D7CD52
analogous
#529ED7 #525CD7 #8A52D7
triadic
#525CD7 #D7525C #5CD752
tetradic
#525CD7 #D7529E #D7CD52 #52D78A
square
#525CD7 #D7529E #D7CD52 #52D78A
split-complementary
#525CD7 #D78A52 #9ED752
monochromatic
#21298E #2C37C0 #525CD7 #848BE2 #B5BAEE

Accessibility & contrast

On white

5.43
#525CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#525CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #525CD7
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##525CD7#FFFFFF#000000##FFFFFF
##525CD71.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DB
Deuteranopia (green-blind)
#0064D5
Tritanopia (blue-blind)
#007A90
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #525cd7;
/* rgb */ color: rgb(82, 92, 215);
/* oklch */ color: oklch(53.7% 0.186 274.7);
Tailwind
colors: {
  custom: {
    50: '#908ae4',
    500: '#525cd7',
    950: '#000000',
  },
}
SCSS
$custom: #525cd7;
$custom-light: #908ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#525cd7",
  "rgb": {
    "r": 82,
    "g": 92,
    "b": 215
  },
  "hsl": {
    "h": 235.489,
    "s": 62.441,
    "l": 58.235
  },
  "oklch": {
    "l": 0.53682,
    "c": 0.18621,
    "h": 274.7
  },
  "luminance": 0.14354
}

Semantic roles & 50–950 ramp

primary
#525CD7
secondary
#DDD9A8
accent
#D942E6
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #525CD7

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

Preview Lab → · Contrast checker → · Palette generator →

#525CD7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva