#5538BE#5538BE

#5538BE is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.0% C 0.197 H 285.6°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#5538BE
RGBrgb(85, 56, 190)
HSLhsl(253, 54%, 48%)
HSVhsv(253, 71%, 75%)
CMYKcmyk(55.3%, 70.5%, 0%, 25.5%)
CIE-LABlab(34.96, 47.23, -66.01)
CIE-LCHlch(34.96, 81.17, 305.58°)
OKLaboklab(45.99% 0.053 -0.1899)
OKLCHoklch(45.99% 0.197 285.6)
XYZxyz(14.4519, 8.4765, 49.5798)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5538BE #A1BE38
analogous
#385EBE #5538BE #9838BE
triadic
#5538BE #BE5538 #38BE55
tetradic
#5538BE #BE385E #A1BE38 #38BE98
square
#5538BE #BE385E #A1BE38 #38BE98
split-complementary
#5538BE #BE9838 #5EBE38
monochromatic
#2B1C5F #402A8F #5538BE #7A62D1 #A292DF

Accessibility & contrast

On white

7.79
#5538BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5538BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5538BE
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5538BE#FFFFFF#000000##FFFFFF
##5538BE1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C2
Deuteranopia (green-blind)
#004EBB
Tritanopia (blue-blind)
#265B77
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5538be;
/* rgb */ color: rgb(85, 56, 190);
/* oklch */ color: oklch(46.0% 0.197 285.6);
Tailwind
colors: {
  custom: {
    50: '#8f71d3',
    500: '#5538be',
    950: '#000000',
  },
}
SCSS
$custom: #5538be;
$custom-light: #8f71d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5538be",
  "rgb": {
    "r": 85,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 252.985,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45989,
    "c": 0.19715,
    "h": 285.6
  },
  "luminance": 0.08477
}

Semantic roles & 50–950 ramp

primary
#5538BE
secondary
#BCCA88
accent
#DE4ABE
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5538BE

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

Preview Lab → · Contrast checker → · Palette generator →

#5538BE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva