#5438CA#5438CA

#5438CA is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.0% C 0.212 H 283.4°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#5438CA
RGBrgb(84, 56, 202)
HSLhsl(252, 58%, 51%)
HSVhsv(252, 72%, 79%)
CMYKcmyk(58.4%, 72.3%, 0%, 20.8%)
CIE-LABlab(35.94, 50.63, -71.42)
CIE-LCHlch(35.94, 87.55, 305.33°)
OKLaboklab(46.99% 0.0492 -0.2058)
OKLCHoklch(46.99% 0.212 283.4)
XYZxyz(15.7277, 8.9764, 56.7695)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5438CA #AECA38
analogous
#3865CA #5438CA #9D38CA
triadic
#5438CA #CA5438 #38CA54
tetradic
#5438CA #CA3865 #AECA38 #38CA9D
square
#5438CA #CA3865 #AECA38 #38CA9D
split-complementary
#5438CA #CA9D38 #65CA38
monochromatic
#2C1D6B #3F299B #5438CA #7E68D7 #A799E4

Accessibility & contrast

On white

7.51
#5438CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5438CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5438CA
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5438CA#FFFFFF#000000##FFFFFF
##5438CA1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CE
Deuteranopia (green-blind)
#0050C7
Tritanopia (blue-blind)
#09607E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5438ca;
/* rgb */ color: rgb(84, 56, 202);
/* oklch */ color: oklch(47.0% 0.212 283.4);
Tailwind
colors: {
  custom: {
    50: '#9172db',
    500: '#5438ca',
    950: '#000000',
  },
}
SCSS
$custom: #5438ca;
$custom-light: #9172db;
$custom-dark: #000000;
JSON
{
  "hex": "#5438ca",
  "rgb": {
    "r": 84,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 251.507,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46994,
    "c": 0.21156,
    "h": 283.4
  },
  "luminance": 0.08977
}

Semantic roles & 50–950 ramp

primary
#5438CA
secondary
#C3CF8E
accent
#E147C4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5438CA

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

Preview Lab → · Contrast checker → · Palette generator →

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