#54269E#54269E

#54269E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.180 H 294.4°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#54269E
RGBrgb(84, 38, 158)
HSLhsl(263, 61%, 38%)
HSVhsv(263, 76%, 62%)
CMYKcmyk(46.8%, 75.9%, 0%, 38%)
CIE-LABlab(28.75, 47.19, -57.05)
CIE-LCHlch(28.75, 74.04, 309.60°)
OKLaboklab(40.7% 0.0743 -0.1635)
OKLCHoklch(40.7% 0.18 294.4)
XYZxyz(10.5191, 5.7394, 32.8947)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54269E #709E26
analogous
#26349E #54269E #90269E
triadic
#54269E #9E5426 #269E54
tetradic
#54269E #9E2634 #709E26 #269E90
square
#54269E #9E2634 #709E26 #269E90
split-complementary
#54269E #9E9026 #349E26
monochromatic
#200E3B #3A1A6D #54269E #6F33CE #9265DA

Accessibility & contrast

On white

9.78
#54269E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#54269E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54269E
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54269E#FFFFFF#000000##FFFFFF
##54269E1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#3E4660
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #54269e;
/* rgb */ color: rgb(84, 38, 158);
/* oklch */ color: oklch(40.7% 0.180 294.4);
Tailwind
colors: {
  custom: {
    50: '#8c65bc',
    500: '#54269e',
    950: '#000000',
  },
}
SCSS
$custom: #54269e;
$custom-light: #8c65bc;
$custom-dark: #000000;
JSON
{
  "hex": "#54269e",
  "rgb": {
    "r": 84,
    "g": 38,
    "b": 158
  },
  "hsl": {
    "h": 263,
    "s": 61.224,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40696,
    "c": 0.17961,
    "h": 294.4
  },
  "luminance": 0.0574
}

Semantic roles & 50–950 ramp

primary
#54269E
secondary
#9BC060
accent
#E443A7
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #54269E

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

Preview Lab → · Contrast checker → · Palette generator →

#54269E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva