#5B488E#5B488E

#5B488E is a mid, moderate violet. Relative luminance 0.088; OKLCH L 45.5% C 0.112 H 294.0°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#5B488E
RGBrgb(91, 72, 142)
HSLhsl(256, 33%, 42%)
HSVhsv(256, 49%, 56%)
CMYKcmyk(35.9%, 49.3%, 0%, 44.3%)
CIE-LABlab(35.62, 24.90, -36.15)
CIE-LCHlch(35.62, 43.90, 304.55°)
OKLaboklab(45.51% 0.0454 -0.102)
OKLCHoklch(45.51% 0.112 294)
XYZxyz(11.5130, 8.8116, 26.6802)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B488E #7B8E48
analogous
#48588E #5B488E #7E488E
triadic
#5B488E #8E5B48 #488E5B
tetradic
#5B488E #8E4858 #7B8E48 #488E7E
square
#5B488E #8E4858 #7B8E48 #488E7E
split-complementary
#5B488E #8E7E48 #588E48
monochromatic
#271F3D #413365 #5B488E #7863B0 #9B8CC5

Accessibility & contrast

On white

7.60
#5B488E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5B488E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B488E
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B488E#FFFFFF#000000##FFFFFF
##5B488E1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5591
Deuteranopia (green-blind)
#33538C
Tritanopia (blue-blind)
#4F5664
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b488e;
/* rgb */ color: rgb(91, 72, 142);
/* oklch */ color: oklch(45.5% 0.112 294.0);
Tailwind
colors: {
  custom: {
    50: '#8c7baf',
    500: '#5b488e',
    950: '#000000',
  },
}
SCSS
$custom: #5b488e;
$custom-light: #8c7baf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b488e",
  "rgb": {
    "r": 91,
    "g": 72,
    "b": 142
  },
  "hsl": {
    "h": 256.286,
    "s": 32.71,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4551,
    "c": 0.11165,
    "h": 294
  },
  "luminance": 0.08812
}

Semantic roles & 50–950 ramp

primary
#5B488E
secondary
#A4B082
accent
#C95FAC
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0910
muted
#7D7B7F

Preview Lab

Preview with #5B488E

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

Preview Lab → · Contrast checker → · Palette generator →

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