#541895#541895

#541895 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.183 H 298.7°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#541895
RGBrgb(84, 24, 149)
HSLhsl(269, 72%, 34%)
HSVhsv(269, 84%, 58%)
CMYKcmyk(43.6%, 83.9%, 0%, 41.6%)
CIE-LABlab(25.89, 50.73, -56.23)
CIE-LCHlch(25.89, 75.73, 312.06°)
OKLaboklab(38.45% 0.088 -0.161)
OKLCHoklch(38.45% 0.183 298.7)
XYZxyz(9.4062, 4.7079, 28.8411)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541895 #599518
analogous
#181B95 #541895 #931895
triadic
#541895 #955418 #189554
tetradic
#541895 #95181B #599518 #189593
square
#541895 #95181B #599518 #189593
split-complementary
#541895 #959318 #1B9518
monochromatic
#19072C #361060 #541895 #7220CA #9146E1

Accessibility & contrast

On white

10.82
#541895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#541895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541895
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541895#FFFFFF#000000##FFFFFF
##5418951.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D98
Deuteranopia (green-blind)
#003C93
Tritanopia (blue-blind)
#433C58
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #541895;
/* rgb */ color: rgb(84, 24, 149);
/* oklch */ color: oklch(38.4% 0.183 298.7);
Tailwind
colors: {
  custom: {
    50: '#8b5eb5',
    500: '#541895',
    950: '#000000',
  },
}
SCSS
$custom: #541895;
$custom-light: #8b5eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#541895",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 268.8,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38449,
    "c": 0.18349,
    "h": 298.7
  },
  "luminance": 0.04708
}

Semantic roles & 50–950 ramp

primary
#541895
secondary
#87C246
accent
#EF3998
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #541895

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

Preview Lab → · Contrast checker → · Palette generator →

#541895 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva