#51239F#51239F

#51239F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.184 H 293.0°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#51239F
RGBrgb(81, 35, 159)
HSLhsl(262, 64%, 38%)
HSVhsv(262, 78%, 62%)
CMYKcmyk(49.1%, 78%, 0%, 37.6%)
CIE-LABlab(27.99, 48.38, -58.91)
CIE-LCHlch(27.99, 76.23, 309.39°)
OKLaboklab(40.12% 0.0719 -0.1691)
OKLCHoklch(40.12% 0.184 293)
XYZxyz(10.2506, 5.4542, 33.3068)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51239F #719F23
analogous
#23339F #51239F #8F239F
triadic
#51239F #9F5123 #239F51
tetradic
#51239F #9F2333 #719F23 #239F8F
square
#51239F #9F2333 #719F23 #239F8F
split-complementary
#51239F #9F8F23 #339F23
monochromatic
#1E0D3B #37186D #51239F #6B2ED1 #8E60DC

Accessibility & contrast

On white

10.04
#51239F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#51239F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51239F
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51239F#FFFFFF#000000##FFFFFF
##51239F1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#384560
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #51239f;
/* rgb */ color: rgb(81, 35, 159);
/* oklch */ color: oklch(40.1% 0.184 293.0);
Tailwind
colors: {
  custom: {
    50: '#8a64bc',
    500: '#51239f',
    950: '#000000',
  },
}
SCSS
$custom: #51239f;
$custom-light: #8a64bc;
$custom-dark: #000000;
JSON
{
  "hex": "#51239f",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 159
  },
  "hsl": {
    "h": 262.258,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40115,
    "c": 0.18372,
    "h": 293
  },
  "luminance": 0.05455
}

Semantic roles & 50–950 ramp

primary
#51239F
secondary
#9CC15D
accent
#E741A9
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #51239F

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

Preview Lab → · Contrast checker → · Palette generator →

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