#54307E#54307E

#54307E is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.5% C 0.128 H 302.1°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#54307E
RGBrgb(84, 48, 126)
HSLhsl(268, 45%, 34%)
HSVhsv(268, 62%, 49%)
CMYKcmyk(33.3%, 61.9%, 0%, 50.6%)
CIE-LABlab(28.13, 33.20, -38.27)
CIE-LCHlch(28.13, 50.66, 310.94°)
OKLaboklab(39.46% 0.0681 -0.1084)
OKLCHoklch(39.46% 0.128 302.1)
XYZxyz(8.4781, 5.5051, 20.3505)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54307E #5A7E30
analogous
#30337E #54307E #7B307E
triadic
#54307E #7E5430 #307E54
tetradic
#54307E #7E3033 #5A7E30 #307E7B
square
#54307E #7E3033 #5A7E30 #307E7B
split-complementary
#54307E #7E7B30 #337E30
monochromatic
#190E25 #361F52 #54307E #7241AA #9164C4

Accessibility & contrast

On white

10.00
#54307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#54307E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54307E
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54307E#FFFFFF#000000##FFFFFF
##54307E1.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064281
Deuteranopia (green-blind)
#1A427C
Tritanopia (blue-blind)
#4C4052
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #54307e;
/* rgb */ color: rgb(84, 48, 126);
/* oklch */ color: oklch(39.5% 0.128 302.1);
Tailwind
colors: {
  custom: {
    50: '#876aa4',
    500: '#54307e',
    950: '#000000',
  },
}
SCSS
$custom: #54307e;
$custom-light: #876aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#54307e",
  "rgb": {
    "r": 84,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 267.692,
    "s": 44.828,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39459,
    "c": 0.12799,
    "h": 302.1
  },
  "luminance": 0.05505
}

Semantic roles & 50–950 ramp

primary
#54307E
secondary
#88AB5F
accent
#D55399
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #54307E

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

Preview Lab → · Contrast checker → · Palette generator →

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