#5948BA#5948BA

#5948BA is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.5% C 0.172 H 284.8°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#5948BA
RGBrgb(89, 72, 186)
HSLhsl(249, 45%, 51%)
HSVhsv(249, 61%, 73%)
CMYKcmyk(52.2%, 61.3%, 0%, 27.1%)
CIE-LABlab(38.38, 37.58, -58.06)
CIE-LCHlch(38.38, 69.16, 302.91°)
OKLaboklab(48.45% 0.0439 -0.1664)
OKLCHoklch(48.45% 0.172 284.8)
XYZxyz(15.2975, 10.3029, 47.6275)
Luminance0.1030 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5948BA #A9BA48
analogous
#4870BA #5948BA #9248BA
triadic
#5948BA #BA5948 #48BA59
tetradic
#5948BA #BA4870 #A9BA48 #48BA92
square
#5948BA #BA4870 #A9BA48 #48BA92
split-complementary
#5948BA #BA9248 #70BA48
monochromatic
#2E2562 #43368F #5948BA #8174CB #AAA1DC

Accessibility & contrast

On white

6.86
#5948BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5948BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5948BA
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5948BA#FFFFFF#000000##FFFFFF
##5948BA1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBE
Deuteranopia (green-blind)
#0057B8
Tritanopia (blue-blind)
#33637A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5948ba;
/* rgb */ color: rgb(89, 72, 186);
/* oklch */ color: oklch(48.5% 0.172 284.8);
Tailwind
colors: {
  custom: {
    50: '#907cd0',
    500: '#5948ba',
    950: '#000000',
  },
}
SCSS
$custom: #5948ba;
$custom-light: #907cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5948ba",
  "rgb": {
    "r": 89,
    "g": 72,
    "b": 186
  },
  "hsl": {
    "h": 248.947,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48452,
    "c": 0.17209,
    "h": 284.8
  },
  "luminance": 0.10304
}

Semantic roles & 50–950 ramp

primary
#5948BA
secondary
#C1C896
accent
#D553C2
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5948BA

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

Preview Lab → · Contrast checker → · Palette generator →

#5948BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva