#54267B#54267B

#54267B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.139 H 305.5°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#54267B
RGBrgb(84, 38, 123)
HSLhsl(272, 53%, 32%)
HSVhsv(272, 69%, 48%)
CMYKcmyk(31.7%, 69.1%, 0%, 51.8%)
CIE-LABlab(25.87, 37.97, -40.02)
CIE-LCHlch(25.87, 55.16, 313.49°)
OKLaboklab(37.75% 0.081 -0.1135)
OKLCHoklch(37.75% 0.139 305.5)
XYZxyz(7.9236, 4.7012, 19.2250)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54267B #4D7B26
analogous
#2A267B #54267B #7B2678
triadic
#54267B #7B5426 #267B54
tetradic
#54267B #7B2A26 #4D7B26 #26787B
square
#54267B #7B2A26 #4D7B26 #26787B
split-complementary
#54267B #787B26 #267B2A
monochromatic
#14091D #34184C #54267B #7434AA #9352CA

Accessibility & contrast

On white

10.82
#54267B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#54267B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54267B
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54267B#FFFFFF#000000##FFFFFF
##54267B1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#0D3D79
Tritanopia (blue-blind)
#4D394D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #54267b;
/* rgb */ color: rgb(84, 38, 123);
/* oklch */ color: oklch(37.8% 0.139 305.5);
Tailwind
colors: {
  custom: {
    50: '#8864a2',
    500: '#54267b',
    950: '#000000',
  },
}
SCSS
$custom: #54267b;
$custom-light: #8864a2;
$custom-dark: #000000;
JSON
{
  "hex": "#54267b",
  "rgb": {
    "r": 84,
    "g": 38,
    "b": 123
  },
  "hsl": {
    "h": 272.471,
    "s": 52.795,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37753,
    "c": 0.13944,
    "h": 305.5
  },
  "luminance": 0.04701
}

Semantic roles & 50–950 ramp

primary
#54267B
secondary
#7BAD50
accent
#DC4C8E
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #54267B

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

Preview Lab → · Contrast checker → · Palette generator →

#54267B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva