#5438CD#5438CD

#5438CD is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.3% C 0.215 H 283.0°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#5438CD
RGBrgb(84, 56, 205)
HSLhsl(251, 60%, 51%)
HSVhsv(251, 73%, 80%)
CMYKcmyk(59%, 72.7%, 0%, 19.6%)
CIE-LABlab(36.21, 51.51, -72.71)
CIE-LCHlch(36.21, 89.11, 305.32°)
OKLaboklab(47.27% 0.0486 -0.2095)
OKLCHoklch(47.27% 0.215 283)
XYZxyz(16.0864, 9.1199, 58.6584)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5438CD #B1CD38
analogous
#3866CD #5438CD #9E38CD
triadic
#5438CD #CD5438 #38CD54
tetradic
#5438CD #CD3866 #B1CD38 #38CD9E
square
#5438CD #CD3866 #B1CD38 #38CD9E
split-complementary
#5438CD #CD9E38 #66CD38
monochromatic
#2B1C6F #3F28A0 #5438CD #7E69D9 #A89AE6

Accessibility & contrast

On white

7.44
#5438CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5438CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5438CD
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5438CD#FFFFFF#000000##FFFFFF
##5438CD1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD1
Deuteranopia (green-blind)
#0050CA
Tritanopia (blue-blind)
#00617F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5438cd;
/* rgb */ color: rgb(84, 56, 205);
/* oklch */ color: oklch(47.3% 0.215 283.0);
Tailwind
colors: {
  custom: {
    50: '#9172dd',
    500: '#5438cd',
    950: '#000000',
  },
}
SCSS
$custom: #5438cd;
$custom-light: #9172dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5438cd",
  "rgb": {
    "r": 84,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 251.275,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47273,
    "c": 0.21508,
    "h": 283
  },
  "luminance": 0.09121
}

Semantic roles & 50–950 ramp

primary
#5438CD
secondary
#C5D18F
accent
#E345C5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5438CD

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

Preview Lab → · Contrast checker → · Palette generator →

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