#56237D#56237D

#56237D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.146 H 306.5°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#56237D
RGBrgb(86, 35, 125)
HSLhsl(274, 56%, 31%)
HSVhsv(274, 72%, 49%)
CMYKcmyk(31.2%, 72%, 0%, 51%)
CIE-LABlab(25.75, 40.45, -41.46)
CIE-LCHlch(25.75, 57.92, 314.29°)
OKLaboklab(37.78% 0.0872 -0.1176)
OKLCHoklch(37.78% 0.146 306.5)
XYZxyz(8.1397, 4.6613, 19.8690)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56237D #4A7D23
analogous
#29237D #56237D #7D2377
triadic
#56237D #7D5623 #237D56
tetradic
#56237D #7D2923 #4A7D23 #23777D
square
#56237D #7D2923 #4A7D23 #23777D
split-complementary
#56237D #777D23 #237D29
monochromatic
#14081D #35164D #56237D #7730AD #964DCD

Accessibility & contrast

On white

10.87
#56237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#56237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56237D
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56237D#FFFFFF#000000##FFFFFF
##56237D1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #56237d;
/* rgb */ color: rgb(86, 35, 125);
/* oklch */ color: oklch(37.8% 0.146 306.5);
Tailwind
colors: {
  custom: {
    50: '#8962a3',
    500: '#56237d',
    950: '#000000',
  },
}
SCSS
$custom: #56237d;
$custom-light: #8962a3;
$custom-dark: #000000;
JSON
{
  "hex": "#56237d",
  "rgb": {
    "r": 86,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 274,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37776,
    "c": 0.14642,
    "h": 306.5
  },
  "luminance": 0.04661
}

Semantic roles & 50–950 ramp

primary
#56237D
secondary
#77AF4C
accent
#E0488A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #56237D

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

Preview Lab → · Contrast checker → · Palette generator →

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