#56268F#56268F

#56268F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.163 H 299.7°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#56268F
RGBrgb(86, 38, 143)
HSLhsl(267, 58%, 35%)
HSVhsv(267, 73%, 56%)
CMYKcmyk(39.9%, 73.4%, 0%, 43.9%)
CIE-LABlab(27.70, 43.56, -49.54)
CIE-LCHlch(27.70, 65.97, 311.33°)
OKLaboklab(39.62% 0.0808 -0.1414)
OKLCHoklch(39.62% 0.163 299.7)
XYZxyz(9.4876, 5.3477, 26.5136)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56268F #5F8F26
analogous
#262A8F #56268F #8A268F
triadic
#56268F #8F5626 #268F56
tetradic
#56268F #8F262A #5F8F26 #268F8A
square
#56268F #8F262A #5F8F26 #268F8A
split-complementary
#56268F #8F8A26 #2A8F26
monochromatic
#1C0C2E #39195F #56268F #7333BF #935CD4

Accessibility & contrast

On white

10.15
#56268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#56268F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56268F
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56268F#FFFFFF#000000##FFFFFF
##56268F1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#494058
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #56268f;
/* rgb */ color: rgb(86, 38, 143);
/* oklch */ color: oklch(39.6% 0.163 299.7);
Tailwind
colors: {
  custom: {
    50: '#8b65b1',
    500: '#56268f',
    950: '#000000',
  },
}
SCSS
$custom: #56268f;
$custom-light: #8b65b1;
$custom-dark: #000000;
JSON
{
  "hex": "#56268f",
  "rgb": {
    "r": 86,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 267.429,
    "s": 58.011,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39616,
    "c": 0.16286,
    "h": 299.7
  },
  "luminance": 0.05348
}

Semantic roles & 50–950 ramp

primary
#56268F
secondary
#8DB958
accent
#E1479B
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #56268F

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

Preview Lab → · Contrast checker → · Palette generator →

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