#50238E#50238E

#50238E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.164 H 297.1°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#50238E
RGBrgb(80, 35, 142)
HSLhsl(265, 60%, 35%)
HSVhsv(265, 75%, 56%)
CMYKcmyk(43.7%, 75.4%, 0%, 44.3%)
CIE-LABlab(26.33, 43.64, -51.19)
CIE-LCHlch(26.33, 67.27, 310.45°)
OKLaboklab(38.45% 0.0749 -0.1464)
OKLCHoklch(38.45% 0.164 297.1)
XYZxyz(8.7905, 4.8604, 26.0609)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50238E #618E23
analogous
#232B8E #50238E #86238E
triadic
#50238E #8E5023 #238E50
tetradic
#50238E #8E232B #618E23 #238E86
square
#50238E #8E232B #618E23 #238E86
split-complementary
#50238E #8E8623 #2B8E23
monochromatic
#190B2C #34175D #50238E #6C2FBF #8C56D5

Accessibility & contrast

On white

10.65
#50238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#50238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50238E
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50238E#FFFFFF#000000##FFFFFF
##50238E1.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#403F57
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #50238e;
/* rgb */ color: rgb(80, 35, 142);
/* oklch */ color: oklch(38.5% 0.164 297.1);
Tailwind
colors: {
  custom: {
    50: '#8763b0',
    500: '#50238e',
    950: '#000000',
  },
}
SCSS
$custom: #50238e;
$custom-light: #8763b0;
$custom-dark: #000000;
JSON
{
  "hex": "#50238e",
  "rgb": {
    "r": 80,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 265.234,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3845,
    "c": 0.16449,
    "h": 297.1
  },
  "luminance": 0.04861
}

Semantic roles & 50–950 ramp

primary
#50238E
secondary
#8FB953
accent
#E444A1
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #50238E

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

Preview Lab → · Contrast checker → · Palette generator →

#50238E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva