#5438C2#5438C2

#5438C2 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.3% C 0.202 H 284.6°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#5438C2
RGBrgb(84, 56, 194)
HSLhsl(252, 55%, 49%)
HSVhsv(252, 71%, 76%)
CMYKcmyk(56.7%, 71.1%, 0%, 23.9%)
CIE-LABlab(35.22, 48.26, -67.94)
CIE-LCHlch(35.22, 83.33, 305.39°)
OKLaboklab(46.26% 0.0508 -0.1955)
OKLCHoklch(46.26% 0.202 284.6)
XYZxyz(14.8050, 8.6073, 51.9097)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5438C2 #A6C238
analogous
#3861C2 #5438C2 #9938C2
triadic
#5438C2 #C25438 #38C254
tetradic
#5438C2 #C23861 #A6C238 #38C299
square
#5438C2 #C23861 #A6C238 #38C299
split-complementary
#5438C2 #C29938 #61C238
monochromatic
#2B1D63 #3F2A93 #5438C2 #7B65D2 #A494E0

Accessibility & contrast

On white

7.72
#5438C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5438C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5438C2
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5438C2#FFFFFF#000000##FFFFFF
##5438C21.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C6
Deuteranopia (green-blind)
#004EBF
Tritanopia (blue-blind)
#1C5D79
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5438c2;
/* rgb */ color: rgb(84, 56, 194);
/* oklch */ color: oklch(46.3% 0.202 284.6);
Tailwind
colors: {
  custom: {
    50: '#9071d6',
    500: '#5438c2',
    950: '#000000',
  },
}
SCSS
$custom: #5438c2;
$custom-light: #9071d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5438c2",
  "rgb": {
    "r": 84,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 252.174,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.46261,
    "c": 0.20205,
    "h": 284.6
  },
  "luminance": 0.08608
}

Semantic roles & 50–950 ramp

primary
#5438C2
secondary
#BECB8A
accent
#DF49C0
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5438C2

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

Preview Lab → · Contrast checker → · Palette generator →

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