#54247F#54247F

#54247F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.147 H 304.3°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#54247F
RGBrgb(84, 36, 127)
HSLhsl(272, 56%, 32%)
HSVhsv(272, 72%, 50%)
CMYKcmyk(33.9%, 71.7%, 0%, 50.2%)
CIE-LABlab(25.80, 40.01, -42.65)
CIE-LCHlch(25.80, 58.48, 313.17°)
OKLaboklab(37.8% 0.0828 -0.1212)
OKLCHoklch(37.8% 0.147 304.3)
XYZxyz(8.1169, 4.6789, 20.5501)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54247F #4F7F24
analogous
#26247F #54247F #7F247D
triadic
#54247F #7F5424 #247F54
tetradic
#54247F #7F2624 #4F7F24 #247D7F
square
#54247F #7F2624 #4F7F24 #247D7F
split-complementary
#54247F #7D7F24 #247F26
monochromatic
#150920 #34164F #54247F #7432AF #9250CD

Accessibility & contrast

On white

10.85
#54247F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#54247F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54247F
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54247F#FFFFFF#000000##FFFFFF
##54247F1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#003D7D
Tritanopia (blue-blind)
#4C394E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #54247f;
/* rgb */ color: rgb(84, 36, 127);
/* oklch */ color: oklch(37.8% 0.147 304.3);
Tailwind
colors: {
  custom: {
    50: '#8863a5',
    500: '#54247f',
    950: '#000000',
  },
}
SCSS
$custom: #54247f;
$custom-light: #8863a5;
$custom-dark: #000000;
JSON
{
  "hex": "#54247f",
  "rgb": {
    "r": 84,
    "g": 36,
    "b": 127
  },
  "hsl": {
    "h": 271.648,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37802,
    "c": 0.14682,
    "h": 304.3
  },
  "luminance": 0.04679
}

Semantic roles & 50–950 ramp

primary
#54247F
secondary
#7DB14E
accent
#DF4990
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #54247F

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

Preview Lab → · Contrast checker → · Palette generator →

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