#5A4FBC#5A4FBC

#5A4FBC is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.9% C 0.165 H 283.2°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#5A4FBC
RGBrgb(90, 79, 188)
HSLhsl(246, 45%, 52%)
HSVhsv(246, 58%, 74%)
CMYKcmyk(52.1%, 58%, 0%, 26.3%)
CIE-LABlab(40.24, 34.17, -56.22)
CIE-LCHlch(40.24, 65.78, 301.29°)
OKLaboklab(49.89% 0.0377 -0.1609)
OKLCHoklch(49.89% 0.165 283.2)
XYZxyz(16.0868, 11.3956, 48.9191)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4FBC #B1BC4F
analogous
#4F7BBC #5A4FBC #914FBC
triadic
#5A4FBC #BC5A4F #4FBC5A
tetradic
#5A4FBC #BC4F7B #B1BC4F #4FBC91
square
#5A4FBC #BC4F7B #B1BC4F #4FBC91
split-complementary
#5A4FBC #BC914F #7BBC4F
monochromatic
#2E2869 #423995 #5A4FBC #847BCD #ADA8DE

Accessibility & contrast

On white

6.40
#5A4FBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5A4FBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4FBC
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4FBC#FFFFFF#000000##FFFFFF
##5A4FBC1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C0
Deuteranopia (green-blind)
#005BBA
Tritanopia (blue-blind)
#32687E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5a4fbc;
/* rgb */ color: rgb(90, 79, 188);
/* oklch */ color: oklch(49.9% 0.165 283.2);
Tailwind
colors: {
  custom: {
    50: '#9081d1',
    500: '#5a4fbc',
    950: '#000000',
  },
}
SCSS
$custom: #5a4fbc;
$custom-light: #9081d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4fbc",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 188
  },
  "hsl": {
    "h": 246.055,
    "s": 44.856,
    "l": 52.353
  },
  "oklch": {
    "l": 0.49885,
    "c": 0.16528,
    "h": 283.2
  },
  "luminance": 0.11396
}

Semantic roles & 50–950 ramp

primary
#5A4FBC
secondary
#C6CB9C
accent
#D553C8
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #5A4FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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