#54107D#54107D

#54107D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.6% C 0.166 H 307.6°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#54107D
RGBrgb(84, 16, 125)
HSLhsl(277, 77%, 28%)
HSVhsv(277, 87%, 49%)
CMYKcmyk(32.8%, 87.2%, 0%, 51%)
CIE-LABlab(22.78, 47.71, -46.30)
CIE-LCHlch(22.78, 66.48, 315.86°)
OKLaboklab(35.63% 0.1017 -0.1318)
OKLCHoklch(35.63% 0.166 307.6)
XYZxyz(7.5423, 3.7362, 19.7219)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54107D #397D10
analogous
#1D107D #54107D #7D1070
triadic
#54107D #7D5410 #107D54
tetradic
#54107D #7D1D10 #397D10 #10707D
square
#54107D #7D1D10 #397D10 #10707D
split-complementary
#54107D #707D10 #107D1D
monochromatic
#12031B #300947 #54107D #7817B3 #9B24E3

Accessibility & contrast

On white

12.02
#54107D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#54107D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54107D
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54107D#FFFFFF#000000##FFFFFF
##54107D1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#4D2F49
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #54107d;
/* rgb */ color: rgb(84, 16, 125);
/* oklch */ color: oklch(35.6% 0.166 307.6);
Tailwind
colors: {
  custom: {
    50: '#895aa3',
    500: '#54107d',
    950: '#000000',
  },
}
SCSS
$custom: #54107d;
$custom-light: #895aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#54107d",
  "rgb": {
    "r": 84,
    "g": 16,
    "b": 125
  },
  "hsl": {
    "h": 277.431,
    "s": 77.305,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35625,
    "c": 0.16645,
    "h": 307.6
  },
  "luminance": 0.03736
}

Semantic roles & 50–950 ramp

primary
#54107D
secondary
#65B335
accent
#F4347C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54107D

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

Preview Lab → · Contrast checker → · Palette generator →

#54107D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva