#50238F#50238F

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

Color values

HEX#50238F
RGBrgb(80, 35, 143)
HSLhsl(265, 61%, 35%)
HSVhsv(265, 76%, 56%)
CMYKcmyk(44.1%, 75.5%, 0%, 43.9%)
CIE-LABlab(26.42, 43.91, -51.67)
CIE-LCHlch(26.42, 67.81, 310.36°)
OKLaboklab(38.54% 0.0746 -0.1478)
OKLCHoklch(38.54% 0.166 296.8)
XYZxyz(8.8659, 4.8905, 26.4581)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50238F #628F23
analogous
#232C8F #50238F #86238F
triadic
#50238F #8F5023 #238F50
tetradic
#50238F #8F232C #628F23 #238F86
square
#50238F #8F232C #628F23 #238F86
split-complementary
#50238F #8F8623 #2C8F23
monochromatic
#190B2D #34175E #50238F #6C2FC0 #8C57D6

Accessibility & contrast

On white

10.62
#50238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#50238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50238F
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50238F#FFFFFF#000000##FFFFFF
##50238F1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#3F3F57
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #50238f;
/* rgb */ color: rgb(80, 35, 143);
/* oklch */ color: oklch(38.5% 0.166 296.8);
Tailwind
colors: {
  custom: {
    50: '#8763b1',
    500: '#50238f',
    950: '#000000',
  },
}
SCSS
$custom: #50238f;
$custom-light: #8763b1;
$custom-dark: #000000;
JSON
{
  "hex": "#50238f",
  "rgb": {
    "r": 80,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 265,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38539,
    "c": 0.16563,
    "h": 296.8
  },
  "luminance": 0.04891
}

Semantic roles & 50–950 ramp

primary
#50238F
secondary
#8FBA54
accent
#E444A1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #50238F

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

Preview Lab → · Contrast checker → · Palette generator →

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