#54279B#54279B

#54279B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.175 H 295.0°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#54279B
RGBrgb(84, 39, 155)
HSLhsl(263, 60%, 38%)
HSVhsv(263, 75%, 61%)
CMYKcmyk(45.8%, 74.8%, 0%, 39.2%)
CIE-LABlab(28.65, 45.90, -55.38)
CIE-LCHlch(28.65, 71.93, 309.65°)
OKLaboklab(40.55% 0.0741 -0.1587)
OKLCHoklch(40.55% 0.175 295)
XYZxyz(10.2965, 5.7021, 31.5621)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54279B #6E9B27
analogous
#27349B #54279B #8E279B
triadic
#54279B #9B5427 #279B54
tetradic
#54279B #9B2734 #6E9B27 #279B8E
square
#54279B #9B2734 #6E9B27 #279B8E
split-complementary
#54279B #9B8E27 #349B27
monochromatic
#1F0E39 #3A1B6A #54279B #6F33CC #9164D8

Accessibility & contrast

On white

9.81
#54279B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#54279B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54279B
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54279B#FFFFFF#000000##FFFFFF
##54279B1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004299
Tritanopia (blue-blind)
#40455F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #54279b;
/* rgb */ color: rgb(84, 39, 155);
/* oklch */ color: oklch(40.5% 0.175 295.0);
Tailwind
colors: {
  custom: {
    50: '#8b66b9',
    500: '#54279b',
    950: '#000000',
  },
}
SCSS
$custom: #54279b;
$custom-light: #8b66b9;
$custom-dark: #000000;
JSON
{
  "hex": "#54279b",
  "rgb": {
    "r": 84,
    "g": 39,
    "b": 155
  },
  "hsl": {
    "h": 263.276,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40546,
    "c": 0.17511,
    "h": 295
  },
  "luminance": 0.05702
}

Semantic roles & 50–950 ramp

primary
#54279B
secondary
#99BE60
accent
#E345A6
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #54279B

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

Preview Lab → · Contrast checker → · Palette generator →

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