#54229B#54229B

#54229B is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.180 H 295.8°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#54229B
RGBrgb(84, 34, 155)
HSLhsl(265, 64%, 37%)
HSVhsv(265, 78%, 61%)
CMYKcmyk(45.8%, 78.1%, 0%, 39.2%)
CIE-LABlab(27.83, 48.23, -56.72)
CIE-LCHlch(27.83, 74.45, 310.38°)
OKLaboklab(39.97% 0.0785 -0.1625)
OKLCHoklch(39.97% 0.18 295.8)
XYZxyz(10.1430, 5.3952, 31.5110)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54229B #699B22
analogous
#222D9B #54229B #90229B
triadic
#54229B #9B5422 #229B54
tetradic
#54229B #9B222D #699B22 #229B90
square
#54229B #9B222D #699B22 #229B90
split-complementary
#54229B #9B9022 #2D9B22
monochromatic
#1E0C37 #391769 #54229B #6F2DCD #915CDB

Accessibility & contrast

On white

10.10
#54229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#54229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54229B
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54229B#FFFFFF#000000##FFFFFF
##54229B1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#004099
Tritanopia (blue-blind)
#40435E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #54229b;
/* rgb */ color: rgb(84, 34, 155);
/* oklch */ color: oklch(40.0% 0.180 295.8);
Tailwind
colors: {
  custom: {
    50: '#8b63b9',
    500: '#54229b',
    950: '#000000',
  },
}
SCSS
$custom: #54229b;
$custom-light: #8b63b9;
$custom-dark: #000000;
JSON
{
  "hex": "#54229b",
  "rgb": {
    "r": 84,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 264.793,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39973,
    "c": 0.18049,
    "h": 295.8
  },
  "luminance": 0.05395
}

Semantic roles & 50–950 ramp

primary
#54229B
secondary
#95C059
accent
#E741A2
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #54229B

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

Preview Lab → · Contrast checker → · Palette generator →

#54229B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva