#51236F#51236F

#51236F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.0% C 0.129 H 309.2°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#51236F
RGBrgb(81, 35, 111)
HSLhsl(276, 52%, 29%)
HSVhsv(276, 68%, 44%)
CMYKcmyk(27%, 68.5%, 0%, 56.5%)
CIE-LABlab(24.00, 35.81, -35.39)
CIE-LCHlch(24.00, 50.35, 315.33°)
OKLaboklab(36.04% 0.0815 -0.1)
OKLCHoklch(36.04% 0.129 309.2)
XYZxyz(6.8630, 4.0992, 15.4655)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51236F #416F23
analogous
#2B236F #51236F #6F2367
triadic
#51236F #6F5123 #236F51
tetradic
#51236F #6F2B23 #416F23 #23676F
square
#51236F #6F2B23 #416F23 #23676F
split-complementary
#51236F #676F23 #236F2B
monochromatic
#110717 #2F1440 #51236F #73329E #9347C5

Accessibility & contrast

On white

11.54
#51236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#51236F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51236F
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51236F#FFFFFF#000000##FFFFFF
##51236F1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003771
Deuteranopia (green-blind)
#173A6D
Tritanopia (blue-blind)
#4D3345
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #51236f;
/* rgb */ color: rgb(81, 35, 111);
/* oklch */ color: oklch(36.0% 0.129 309.2);
Tailwind
colors: {
  custom: {
    50: '#856199',
    500: '#51236f',
    950: '#000000',
  },
}
SCSS
$custom: #51236f;
$custom-light: #856199;
$custom-dark: #000000;
JSON
{
  "hex": "#51236f",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 276.316,
    "s": 52.055,
    "l": 28.627
  },
  "oklch": {
    "l": 0.36039,
    "c": 0.129,
    "h": 309.2
  },
  "luminance": 0.04099
}

Semantic roles & 50–950 ramp

primary
#51236F
secondary
#6EA24C
accent
#DB4C85
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #51236F

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

Preview Lab → · Contrast checker → · Palette generator →

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