#54307C#54307C

#54307C is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.3% C 0.125 H 302.9°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#54307C
RGBrgb(84, 48, 124)
HSLhsl(268, 44%, 34%)
HSVhsv(268, 61%, 49%)
CMYKcmyk(32.3%, 61.3%, 0%, 51.4%)
CIE-LABlab(27.99, 32.66, -37.23)
CIE-LCHlch(27.99, 49.52, 311.26°)
OKLaboklab(39.32% 0.0681 -0.1053)
OKLCHoklch(39.32% 0.125 302.9)
XYZxyz(8.3504, 5.4540, 19.6777)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54307C #587C30
analogous
#30327C #54307C #7A307C
triadic
#54307C #7C5430 #307C54
tetradic
#54307C #7C3032 #587C30 #307C7A
square
#54307C #7C3032 #587C30 #307C7A
split-complementary
#54307C #7C7A30 #327C30
monochromatic
#180E24 #361F50 #54307C #7241A8 #9164C3

Accessibility & contrast

On white

10.04
#54307C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#54307C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54307C
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54307C#FFFFFF#000000##FFFFFF
##54307C1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B417E
Deuteranopia (green-blind)
#1D427A
Tritanopia (blue-blind)
#4C3F51
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #54307c;
/* rgb */ color: rgb(84, 48, 124);
/* oklch */ color: oklch(39.3% 0.125 302.9);
Tailwind
colors: {
  custom: {
    50: '#876aa2',
    500: '#54307c',
    950: '#000000',
  },
}
SCSS
$custom: #54307c;
$custom-light: #876aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#54307c",
  "rgb": {
    "r": 84,
    "g": 48,
    "b": 124
  },
  "hsl": {
    "h": 268.421,
    "s": 44.186,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39315,
    "c": 0.12545,
    "h": 302.9
  },
  "luminance": 0.05454
}

Semantic roles & 50–950 ramp

primary
#54307C
secondary
#86AA5E
accent
#D45497
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #54307C

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

Preview Lab → · Contrast checker → · Palette generator →

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