#5948ED#5948ED

#5948ED is a mid, highly saturated blue. Relative luminance 0.129; OKLCH L 52.8% C 0.235 H 279.2°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#5948ED
RGBrgb(89, 72, 237)
HSLhsl(246, 82%, 61%)
HSVhsv(246, 70%, 93%)
CMYKcmyk(62.4%, 69.6%, 0%, 7.1%)
CIE-LABlab(42.57, 53.23, -80.57)
CIE-LCHlch(42.57, 96.56, 303.45°)
OKLaboklab(52.77% 0.0378 -0.2324)
OKLCHoklch(52.77% 0.236 279.2)
XYZxyz(21.7184, 12.8713, 81.4443)
Luminance0.1287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5948ED #DCED48
analogous
#4889ED #5948ED #AC48ED
triadic
#5948ED #ED5948 #48ED59
tetradic
#5948ED #ED4889 #DCED48 #48EDAC
square
#5948ED #ED4889 #DCED48 #48EDAC
split-complementary
#5948ED #EDAC48 #89ED48
monochromatic
#2011AA #2B16E2 #5948ED #8C80F2 #BEB7F8

Accessibility & contrast

On white

5.87
#5948ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#5948ED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5948ED
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5948ED#FFFFFF#000000##FFFFFF
##5948ED1.005.873.575.87
#FFFFFF5.871.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BF2
Deuteranopia (green-blind)
#005EEA
Tritanopia (blue-blind)
#007595
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5948ed;
/* rgb */ color: rgb(89, 72, 237);
/* oklch */ color: oklch(52.8% 0.235 279.2);
Tailwind
colors: {
  custom: {
    50: '#987df4',
    500: '#5948ed',
    950: '#000000',
  },
}
SCSS
$custom: #5948ed;
$custom-light: #987df4;
$custom-dark: #000000;
JSON
{
  "hex": "#5948ed",
  "rgb": {
    "r": 89,
    "g": 72,
    "b": 237
  },
  "hsl": {
    "h": 246.182,
    "s": 82.09,
    "l": 60.588
  },
  "oklch": {
    "l": 0.52774,
    "c": 0.2355,
    "h": 279.2
  },
  "luminance": 0.12873
}

Semantic roles & 50–950 ramp

primary
#5948ED
secondary
#E1E8A9
accent
#DE07C8
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5948ED

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

Preview Lab → · Contrast checker → · Palette generator →

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