#5948AB#5948AB

#5948AB is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.3% C 0.152 H 287.0°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#5948AB
RGBrgb(89, 72, 171)
HSLhsl(250, 41%, 48%)
HSVhsv(250, 58%, 67%)
CMYKcmyk(48%, 57.9%, 0%, 32.9%)
CIE-LABlab(37.30, 32.98, -50.95)
CIE-LCHlch(37.30, 60.69, 302.92°)
OKLaboklab(47.31% 0.0444 -0.1455)
OKLCHoklch(47.31% 0.152 287)
XYZxyz(13.7857, 9.6983, 39.6658)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5948AB #9AAB48
analogous
#4868AB #5948AB #8A48AB
triadic
#5948AB #AB5948 #48AB59
tetradic
#5948AB #AB4868 #9AAB48 #48AB8A
square
#5948AB #AB4868 #9AAB48 #48AB8A
split-complementary
#5948AB #AB8A48 #68AB48
monochromatic
#2C2455 #433680 #5948AB #7D6EC2 #A399D4

Accessibility & contrast

On white

7.14
#5948AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5948AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5948AB
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5948AB#FFFFFF#000000##FFFFFF
##5948AB1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAE
Deuteranopia (green-blind)
#0055A9
Tritanopia (blue-blind)
#3E5E72
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5948ab;
/* rgb */ color: rgb(89, 72, 171);
/* oklch */ color: oklch(47.3% 0.152 287.0);
Tailwind
colors: {
  custom: {
    50: '#8e7bc5',
    500: '#5948ab',
    950: '#000000',
  },
}
SCSS
$custom: #5948ab;
$custom-light: #8e7bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5948ab",
  "rgb": {
    "r": 89,
    "g": 72,
    "b": 171
  },
  "hsl": {
    "h": 250.303,
    "s": 40.741,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4731,
    "c": 0.15211,
    "h": 287
  },
  "luminance": 0.09699
}

Semantic roles & 50–950 ramp

primary
#5948AB
secondary
#B8C08E
accent
#D157BC
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5948AB

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

Preview Lab → · Contrast checker → · Palette generator →

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