#5F52FF#5F52FF

#5F52FF is a mid, highly saturated blue. Relative luminance 0.157; OKLCH L 56.2% C 0.245 H 278.4°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#5F52FF
RGBrgb(95, 82, 255)
HSLhsl(245, 100%, 66%)
HSVhsv(245, 68%, 100%)
CMYKcmyk(62.7%, 67.8%, 0%, 0%)
CIE-LABlab(46.56, 54.01, -84.09)
CIE-LCHlch(46.56, 99.94, 302.71°)
OKLaboklab(56.22% 0.0356 -0.2426)
OKLCHoklch(56.22% 0.245 278.4)
XYZxyz(25.7808, 15.6854, 96.2574)
Luminance0.1569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F52FF #F2FF52
analogous
#529BFF #5F52FF #B652FF
triadic
#5F52FF #FF5F52 #52FF5F
tetradic
#5F52FF #FF529B #F2FF52 #52FFB6
square
#5F52FF #FF529B #F2FF52 #52FFB6
split-complementary
#5F52FF #FFB652 #9BFF52
monochromatic
#1000D7 #2615FF #5F52FF #988FFF #D0CCFF

Accessibility & contrast

On white

5.08
#5F52FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#5F52FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F52FF
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F52FF#FFFFFF#000000##FFFFFF
##5F52FF1.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075FF
Deuteranopia (green-blind)
#0067FC
Tritanopia (blue-blind)
#0080A2
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5f52ff;
/* rgb */ color: rgb(95, 82, 255);
/* oklch */ color: oklch(56.2% 0.245 278.4);
Tailwind
colors: {
  custom: {
    50: '#9d84ff',
    500: '#5f52ff',
    950: '#000000',
  },
}
SCSS
$custom: #5f52ff;
$custom-light: #9d84ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5f52ff",
  "rgb": {
    "r": 95,
    "g": 82,
    "b": 255
  },
  "hsl": {
    "h": 244.509,
    "s": 100,
    "l": 66.078
  },
  "oklch": {
    "l": 0.56223,
    "c": 0.24519,
    "h": 278.4
  },
  "luminance": 0.15687
}

Semantic roles & 50–950 ramp

primary
#5F52FF
secondary
#EFF3BA
accent
#E600D4
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B18
muted
#7F7C86

Preview Lab

Preview with #5F52FF

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

Preview Lab → · Contrast checker → · Palette generator →

#5F52FF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva