#5438B2#5438B2

#5438B2 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.8% C 0.183 H 287.1°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#5438B2
RGBrgb(84, 56, 178)
HSLhsl(254, 52%, 46%)
HSVhsv(254, 69%, 70%)
CMYKcmyk(52.8%, 68.5%, 0%, 30.2%)
CIE-LABlab(33.83, 43.51, -60.76)
CIE-LCHlch(33.83, 74.74, 305.61°)
OKLaboklab(44.84% 0.0537 -0.1745)
OKLCHoklch(44.84% 0.183 287.1)
XYZxyz(13.1038, 7.9269, 42.9504)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5438B2 #96B238
analogous
#3859B2 #5438B2 #9138B2
triadic
#5438B2 #B25438 #38B254
tetradic
#5438B2 #B23859 #96B238 #38B291
square
#5438B2 #B23859 #96B238 #38B291
split-complementary
#5438B2 #B29138 #59B238
monochromatic
#281B55 #3E2983 #5438B2 #755CCC #9D8ADA

Accessibility & contrast

On white

8.12
#5438B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5438B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5438B2
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5438B2#FFFFFF#000000##FFFFFF
##5438B21.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#2F5770
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5438b2;
/* rgb */ color: rgb(84, 56, 178);
/* oklch */ color: oklch(44.8% 0.183 287.1);
Tailwind
colors: {
  custom: {
    50: '#8d71ca',
    500: '#5438b2',
    950: '#000000',
  },
}
SCSS
$custom: #5438b2;
$custom-light: #8d71ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5438b2",
  "rgb": {
    "r": 84,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 253.77,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44843,
    "c": 0.1826,
    "h": 287.1
  },
  "luminance": 0.07928
}

Semantic roles & 50–950 ramp

primary
#5438B2
secondary
#B5C581
accent
#DC4CBB
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5438B2

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

Preview Lab → · Contrast checker → · Palette generator →

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