#51235C#51235C

#51235C is a dark, moderate purple. Relative luminance 0.037; OKLCH L 34.7% C 0.107 H 319.5°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#51235C
RGBrgb(81, 35, 92)
HSLhsl(288, 45%, 25%)
HSVhsv(288, 62%, 36%)
CMYKcmyk(12%, 62%, 0%, 63.9%)
CIE-LABlab(22.74, 31.29, -25.01)
CIE-LCHlch(22.74, 40.06, 321.36°)
OKLaboklab(34.72% 0.0816 -0.0696)
OKLCHoklch(34.72% 0.107 319.5)
XYZxyz(5.9259, 3.7244, 10.5299)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51235C #2E5C23
analogous
#35235C #51235C #5C234B
triadic
#51235C #5C5123 #235C51
tetradic
#51235C #5C3523 #2E5C23 #234B5C
square
#51235C #5C3523 #2E5C23 #234B5C
split-complementary
#51235C #4B5C23 #235C35
monochromatic
#140816 #2A1230 #51235C #783488 #9F45B5

Accessibility & contrast

On white

12.04
#51235C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#51235C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51235C
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51235C#FFFFFF#000000##FFFFFF
##51235C1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17335E
Deuteranopia (green-blind)
#27385B
Tritanopia (blue-blind)
#512C3C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #51235c;
/* rgb */ color: rgb(81, 35, 92);
/* oklch */ color: oklch(34.7% 0.107 319.5);
Tailwind
colors: {
  custom: {
    50: '#84618a',
    500: '#51235c',
    950: '#000000',
  },
}
SCSS
$custom: #51235c;
$custom-light: #84618a;
$custom-dark: #000000;
JSON
{
  "hex": "#51235c",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 92
  },
  "hsl": {
    "h": 288.421,
    "s": 44.882,
    "l": 24.902
  },
  "oklch": {
    "l": 0.34722,
    "c": 0.10728,
    "h": 319.5
  },
  "luminance": 0.03724
}

Semantic roles & 50–950 ramp

primary
#51235C
secondary
#58904B
accent
#D5536C
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #51235C

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

Preview Lab → · Contrast checker → · Palette generator →

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