#5438AF#5438AF

#5438AF is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.6% C 0.179 H 287.6°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#5438AF
RGBrgb(84, 56, 175)
HSLhsl(254, 52%, 45%)
HSVhsv(254, 68%, 69%)
CMYKcmyk(52%, 68%, 0%, 31.4%)
CIE-LABlab(33.58, 42.62, -59.39)
CIE-LCHlch(33.58, 73.10, 305.67°)
OKLaboklab(44.59% 0.0542 -0.1705)
OKLCHoklch(44.59% 0.179 287.6)
XYZxyz(12.8059, 7.8077, 41.3814)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5438AF #93AF38
analogous
#3857AF #5438AF #9038AF
triadic
#5438AF #AF5438 #38AF54
tetradic
#5438AF #AF3857 #93AF38 #38AF90
square
#5438AF #AF3857 #93AF38 #38AF90
split-complementary
#5438AF #AF9038 #57AF38
monochromatic
#271A52 #3E2981 #5438AF #745ACA #9B88D9

Accessibility & contrast

On white

8.20
#5438AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5438AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5438AF
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5438AF#FFFFFF#000000##FFFFFF
##5438AF1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#004CAD
Tritanopia (blue-blind)
#32566F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5438af;
/* rgb */ color: rgb(84, 56, 175);
/* oklch */ color: oklch(44.6% 0.179 287.6);
Tailwind
colors: {
  custom: {
    50: '#8d71c8',
    500: '#5438af',
    950: '#000000',
  },
}
SCSS
$custom: #5438af;
$custom-light: #8d71c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5438af",
  "rgb": {
    "r": 84,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 254.118,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44585,
    "c": 0.17889,
    "h": 287.6
  },
  "luminance": 0.07808
}

Semantic roles & 50–950 ramp

primary
#5438AF
secondary
#B3C380
accent
#DB4DBA
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5438AF

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

Preview Lab → · Contrast checker → · Palette generator →

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