#54246F#54246F

#54246F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.6% C 0.129 H 311.1°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#54246F
RGBrgb(84, 36, 111)
HSLhsl(278, 51%, 29%)
HSVhsv(278, 68%, 44%)
CMYKcmyk(24.3%, 67.6%, 0%, 56.5%)
CIE-LABlab(24.62, 36.03, -34.36)
CIE-LCHlch(24.62, 49.79, 316.36°)
OKLaboklab(36.58% 0.0845 -0.0969)
OKLCHoklch(36.58% 0.129 311.1)
XYZxyz(7.1557, 4.2944, 15.4878)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54246F #3F6F24
analogous
#2F246F #54246F #6F2465
triadic
#54246F #6F5424 #246F54
tetradic
#54246F #6F2F24 #3F6F24 #24656F
square
#54246F #6F2F24 #3F6F24 #24656F
split-complementary
#54246F #656F24 #246F2F
monochromatic
#110717 #311541 #54246F #77339D #9849C4

Accessibility & contrast

On white

11.30
#54246F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#54246F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54246F
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54246F#FFFFFF#000000##FFFFFF
##54246F1.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003871
Deuteranopia (green-blind)
#1C3B6D
Tritanopia (blue-blind)
#513346
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #54246f;
/* rgb */ color: rgb(84, 36, 111);
/* oklch */ color: oklch(36.6% 0.129 311.1);
Tailwind
colors: {
  custom: {
    50: '#876299',
    500: '#54246f',
    950: '#000000',
  },
}
SCSS
$custom: #54246f;
$custom-light: #876299;
$custom-dark: #000000;
JSON
{
  "hex": "#54246f",
  "rgb": {
    "r": 84,
    "g": 36,
    "b": 111
  },
  "hsl": {
    "h": 278.4,
    "s": 51.02,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36582,
    "c": 0.12855,
    "h": 311.1
  },
  "luminance": 0.04294
}

Semantic roles & 50–950 ramp

primary
#54246F
secondary
#6BA24D
accent
#DA4D80
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #54246F

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

Preview Lab → · Contrast checker → · Palette generator →

#54246F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva