#54268D#54268D

#54268D is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.160 H 299.2°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#54268D
RGBrgb(84, 38, 141)
HSLhsl(267, 58%, 35%)
HSVhsv(267, 73%, 55%)
CMYKcmyk(40.4%, 73%, 0%, 44.7%)
CIE-LABlab(27.28, 42.65, -49.00)
CIE-LCHlch(27.28, 64.96, 311.04°)
OKLaboklab(39.21% 0.0782 -0.1399)
OKLCHoklch(39.21% 0.16 299.2)
XYZxyz(9.1558, 5.1940, 25.7143)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54268D #5F8D26
analogous
#262C8D #54268D #87268D
triadic
#54268D #8D5426 #268D54
tetradic
#54268D #8D262C #5F8D26 #268D87
square
#54268D #8D262C #5F8D26 #268D87
split-complementary
#54268D #8D8726 #2C8D26
monochromatic
#1B0C2D #37195D #54268D #7133BD #905BD3

Accessibility & contrast

On white

10.30
#54268D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#54268D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54268D
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54268D#FFFFFF#000000##FFFFFF
##54268D1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#473F57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #54268d;
/* rgb */ color: rgb(84, 38, 141);
/* oklch */ color: oklch(39.2% 0.160 299.2);
Tailwind
colors: {
  custom: {
    50: '#8965af',
    500: '#54268d',
    950: '#000000',
  },
}
SCSS
$custom: #54268d;
$custom-light: #8965af;
$custom-dark: #000000;
JSON
{
  "hex": "#54268d",
  "rgb": {
    "r": 84,
    "g": 38,
    "b": 141
  },
  "hsl": {
    "h": 266.796,
    "s": 57.542,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39208,
    "c": 0.16027,
    "h": 299.2
  },
  "luminance": 0.05194
}

Semantic roles & 50–950 ramp

primary
#54268D
secondary
#8DB857
accent
#E1479C
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #54268D

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

Preview Lab → · Contrast checker → · Palette generator →

#54268D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva