#5F53C5#5F53C5

#5F53C5 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.7% C 0.171 H 283.4°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#5F53C5
RGBrgb(95, 83, 197)
HSLhsl(246, 50%, 55%)
HSVhsv(246, 58%, 77%)
CMYKcmyk(51.8%, 57.9%, 0%, 22.7%)
CIE-LABlab(42.23, 35.54, -58.22)
CIE-LCHlch(42.23, 68.21, 301.40°)
OKLaboklab(51.66% 0.0397 -0.1666)
OKLCHoklch(51.66% 0.171 283.4)
XYZxyz(17.8876, 12.6497, 54.3116)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F53C5 #B9C553
analogous
#5380C5 #5F53C5 #9853C5
triadic
#5F53C5 #C55F53 #53C55F
tetradic
#5F53C5 #C55380 #B9C553 #53C598
square
#5F53C5 #C55380 #B9C553 #53C598
split-complementary
#5F53C5 #C59853 #80C553
monochromatic
#302876 #4337A4 #5F53C5 #8A81D4 #B4AFE4

Accessibility & contrast

On white

5.95
#5F53C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5F53C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F53C5
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F53C5#FFFFFF#000000##FFFFFF
##5F53C51.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C9
Deuteranopia (green-blind)
#0060C3
Tritanopia (blue-blind)
#366D84
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f53c5;
/* rgb */ color: rgb(95, 83, 197);
/* oklch */ color: oklch(51.7% 0.171 283.4);
Tailwind
colors: {
  custom: {
    50: '#9484d7',
    500: '#5f53c5',
    950: '#000000',
  },
}
SCSS
$custom: #5f53c5;
$custom-light: #9484d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f53c5",
  "rgb": {
    "r": 95,
    "g": 83,
    "b": 197
  },
  "hsl": {
    "h": 246.316,
    "s": 49.565,
    "l": 54.902
  },
  "oklch": {
    "l": 0.5166,
    "c": 0.17129,
    "h": 283.4
  },
  "luminance": 0.12651
}

Semantic roles & 50–950 ramp

primary
#5F53C5
secondary
#CDD2A2
accent
#D94FCB
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0E0B14
muted
#7E7C83

Preview Lab

Preview with #5F53C5

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

Preview Lab → · Contrast checker → · Palette generator →

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