#56267F#56267F

#56267F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.145 H 305.2°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#56267F
RGBrgb(86, 38, 127)
HSLhsl(272, 54%, 32%)
HSVhsv(272, 70%, 50%)
CMYKcmyk(32.3%, 70.1%, 0%, 50.2%)
CIE-LABlab(26.44, 39.44, -41.61)
CIE-LCHlch(26.44, 57.33, 313.47°)
OKLaboklab(38.32% 0.0835 -0.1181)
OKLCHoklch(38.32% 0.145 305.2)
XYZxyz(8.3608, 4.8970, 20.5793)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56267F #4F7F26
analogous
#2A267F #56267F #7F267B
triadic
#56267F #7F5626 #267F56
tetradic
#56267F #7F2A26 #4F7F26 #267B7F
square
#56267F #7F2A26 #4F7F26 #267B7F
split-complementary
#56267F #7B7F26 #267F2A
monochromatic
#160A21 #361850 #56267F #7634AE #9454CC

Accessibility & contrast

On white

10.61
#56267F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#56267F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56267F
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56267F#FFFFFF#000000##FFFFFF
##56267F1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#083F7D
Tritanopia (blue-blind)
#4F3A4F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #56267f;
/* rgb */ color: rgb(86, 38, 127);
/* oklch */ color: oklch(38.3% 0.145 305.2);
Tailwind
colors: {
  custom: {
    50: '#8964a5',
    500: '#56267f',
    950: '#000000',
  },
}
SCSS
$custom: #56267f;
$custom-light: #8964a5;
$custom-dark: #000000;
JSON
{
  "hex": "#56267f",
  "rgb": {
    "r": 86,
    "g": 38,
    "b": 127
  },
  "hsl": {
    "h": 272.36,
    "s": 53.939,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38318,
    "c": 0.14459,
    "h": 305.2
  },
  "luminance": 0.04897
}

Semantic roles & 50–950 ramp

primary
#56267F
secondary
#7DB051
accent
#DD4A8E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #56267F

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

Preview Lab → · Contrast checker → · Palette generator →

#56267F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva