#5438BF#5438BF

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

Color values

HEX#5438BF
RGBrgb(84, 56, 191)
HSLhsl(252, 55%, 48%)
HSVhsv(252, 71%, 75%)
CMYKcmyk(56%, 70.7%, 0%, 25.1%)
CIE-LABlab(34.95, 47.37, -66.61)
CIE-LCHlch(34.95, 81.74, 305.42°)
OKLaboklab(45.99% 0.0514 -0.1917)
OKLCHoklch(45.99% 0.198 285)
XYZxyz(14.4714, 8.4739, 50.1532)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5438BF #A3BF38
analogous
#3860BF #5438BF #9738BF
triadic
#5438BF #BF5438 #38BF54
tetradic
#5438BF #BF3860 #A3BF38 #38BF97
square
#5438BF #BF3860 #A3BF38 #38BF97
split-complementary
#5438BF #BF9738 #60BF38
monochromatic
#2A1C60 #3F2A90 #5438BF #7A63D1 #A292DF

Accessibility & contrast

On white

7.79
#5438BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5438BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5438BF
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5438BF#FFFFFF#000000##FFFFFF
##5438BF1.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)
#0056C3
Deuteranopia (green-blind)
#004EBC
Tritanopia (blue-blind)
#215C77
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5438bf;
/* rgb */ color: rgb(84, 56, 191);
/* oklch */ color: oklch(46.0% 0.198 285.0);
Tailwind
colors: {
  custom: {
    50: '#8f71d3',
    500: '#5438bf',
    950: '#000000',
  },
}
SCSS
$custom: #5438bf;
$custom-light: #8f71d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5438bf",
  "rgb": {
    "r": 84,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 252.444,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.4599,
    "c": 0.19845,
    "h": 285
  },
  "luminance": 0.08475
}

Semantic roles & 50–950 ramp

primary
#5438BF
secondary
#BDCA89
accent
#DE4ABF
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5438BF

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

Preview Lab → · Contrast checker → · Palette generator →

#5438BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva