#51238F#51238F

#51238F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.166 H 297.4°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#51238F
RGBrgb(81, 35, 143)
HSLhsl(266, 61%, 35%)
HSVhsv(266, 76%, 56%)
CMYKcmyk(43.4%, 75.5%, 0%, 43.9%)
CIE-LABlab(26.55, 44.09, -51.45)
CIE-LCHlch(26.55, 67.76, 310.59°)
OKLaboklab(38.66% 0.0762 -0.1472)
OKLCHoklch(38.66% 0.166 297.4)
XYZxyz(8.9510, 4.9344, 26.4621)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51238F #618F23
analogous
#232B8F #51238F #87238F
triadic
#51238F #8F5123 #238F51
tetradic
#51238F #8F232B #618F23 #238F87
square
#51238F #8F232B #618F23 #238F87
split-complementary
#51238F #8F8723 #2B8F23
monochromatic
#190B2D #35175E #51238F #6D2FC0 #8D57D6

Accessibility & contrast

On white

10.57
#51238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#51238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51238F
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51238F#FFFFFF#000000##FFFFFF
##51238F1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#413F57
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #51238f;
/* rgb */ color: rgb(81, 35, 143);
/* oklch */ color: oklch(38.7% 0.166 297.4);
Tailwind
colors: {
  custom: {
    50: '#8863b1',
    500: '#51238f',
    950: '#000000',
  },
}
SCSS
$custom: #51238f;
$custom-light: #8863b1;
$custom-dark: #000000;
JSON
{
  "hex": "#51238f",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 265.556,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38657,
    "c": 0.16574,
    "h": 297.4
  },
  "luminance": 0.04935
}

Semantic roles & 50–950 ramp

primary
#51238F
secondary
#8EBA54
accent
#E444A0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #51238F

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

Preview Lab → · Contrast checker → · Palette generator →

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