#56227D#56227D

#56227D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.148 H 306.7°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#56227D
RGBrgb(86, 34, 125)
HSLhsl(274, 57%, 31%)
HSVhsv(274, 73%, 49%)
CMYKcmyk(31.2%, 72.8%, 0%, 51%)
CIE-LABlab(25.57, 40.93, -41.74)
CIE-LCHlch(25.57, 58.47, 314.44°)
OKLaboklab(37.65% 0.0883 -0.1185)
OKLCHoklch(37.65% 0.148 306.7)
XYZxyz(8.1107, 4.6032, 19.8593)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56227D #497D22
analogous
#28227D #56227D #7D2276
triadic
#56227D #7D5622 #227D56
tetradic
#56227D #7D2822 #497D22 #22767D
square
#56227D #7D2822 #497D22 #22767D
split-complementary
#56227D #767D22 #227D28
monochromatic
#14081D #35154D #56227D #772FAD #964BCE

Accessibility & contrast

On white

10.93
#56227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#56227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56227D
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56227D#FFFFFF#000000##FFFFFF
##56227D1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#043D7B
Tritanopia (blue-blind)
#4F374D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #56227d;
/* rgb */ color: rgb(86, 34, 125);
/* oklch */ color: oklch(37.7% 0.148 306.7);
Tailwind
colors: {
  custom: {
    50: '#8962a3',
    500: '#56227d',
    950: '#000000',
  },
}
SCSS
$custom: #56227d;
$custom-light: #8962a3;
$custom-dark: #000000;
JSON
{
  "hex": "#56227d",
  "rgb": {
    "r": 86,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 274.286,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37652,
    "c": 0.14776,
    "h": 306.7
  },
  "luminance": 0.04603
}

Semantic roles & 50–950 ramp

primary
#56227D
secondary
#76B04B
accent
#E04789
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #56227D

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

Preview Lab → · Contrast checker → · Palette generator →

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