#56255C#56255C

#56255C is a dark, moderate purple. Relative luminance 0.041; OKLCH L 35.7% C 0.107 H 323.2°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#56255C
RGBrgb(86, 37, 92)
HSLhsl(293, 43%, 25%)
HSVhsv(293, 60%, 36%)
CMYKcmyk(6.5%, 59.8%, 0%, 63.9%)
CIE-LABlab(23.92, 31.69, -23.10)
CIE-LCHlch(23.92, 39.21, 323.91°)
OKLaboklab(35.74% 0.0854 -0.064)
OKLCHoklch(35.74% 0.107 323.2)
XYZxyz(6.4309, 4.0746, 10.5709)
Luminance0.0407 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56255C #2B5C25
analogous
#3B255C #56255C #5C2546
triadic
#56255C #5C5625 #255C56
tetradic
#56255C #5C3B25 #2B5C25 #25465C
square
#56255C #5C3B25 #2B5C25 #25465C
split-complementary
#56255C #465C25 #255C3B
monochromatic
#140916 #2D1330 #56255C #7F3788 #A848B3

Accessibility & contrast

On white

11.57
#56255C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#56255C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56255C
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56255C#FFFFFF#000000##FFFFFF
##56255C1.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C355E
Deuteranopia (green-blind)
#2C3B5A
Tritanopia (blue-blind)
#572D3C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #56255c;
/* rgb */ color: rgb(86, 37, 92);
/* oklch */ color: oklch(35.7% 0.107 323.2);
Tailwind
colors: {
  custom: {
    50: '#87628a',
    500: '#56255c',
    950: '#000000',
  },
}
SCSS
$custom: #56255c;
$custom-light: #87628a;
$custom-dark: #000000;
JSON
{
  "hex": "#56255c",
  "rgb": {
    "r": 86,
    "g": 37,
    "b": 92
  },
  "hsl": {
    "h": 293.455,
    "s": 42.636,
    "l": 25.294
  },
  "oklch": {
    "l": 0.35745,
    "c": 0.10668,
    "h": 323.2
  },
  "luminance": 0.04074
}

Semantic roles & 50–950 ramp

primary
#56255C
secondary
#558F4D
accent
#D25563
background
#F8F5F8
surface
#F0EAF0
border
#CBC6CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #56255C

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

Preview Lab → · Contrast checker → · Palette generator →

#56255C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva