#50229B#50229B

#50229B is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.180 H 293.7°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#50229B
RGBrgb(80, 34, 155)
HSLhsl(263, 64%, 37%)
HSVhsv(263, 78%, 61%)
CMYKcmyk(48.4%, 78.1%, 0%, 39.2%)
CIE-LABlab(27.34, 47.60, -57.54)
CIE-LCHlch(27.34, 74.68, 309.60°)
OKLaboklab(39.52% 0.0723 -0.1651)
OKLCHoklch(39.52% 0.18 293.7)
XYZxyz(9.7951, 5.2158, 31.4946)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50229B #6D9B22
analogous
#22319B #50229B #8D229B
triadic
#50229B #9B5022 #229B50
tetradic
#50229B #9B2231 #6D9B22 #229B8D
square
#50229B #9B2231 #6D9B22 #229B8D
split-complementary
#50229B #9B8D22 #319B22
monochromatic
#1C0C37 #361769 #50229B #6A2DCD #8C5CDB

Accessibility & contrast

On white

10.28
#50229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#50229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50229B
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50229B#FFFFFF#000000##FFFFFF
##50229B1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003E99
Tritanopia (blue-blind)
#39445E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #50229b;
/* rgb */ color: rgb(80, 34, 155);
/* oklch */ color: oklch(39.5% 0.180 293.7);
Tailwind
colors: {
  custom: {
    50: '#8963ba',
    500: '#50229b',
    950: '#000000',
  },
}
SCSS
$custom: #50229b;
$custom-light: #8963ba;
$custom-dark: #000000;
JSON
{
  "hex": "#50229b",
  "rgb": {
    "r": 80,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 262.81,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39519,
    "c": 0.18023,
    "h": 293.7
  },
  "luminance": 0.05216
}

Semantic roles & 50–950 ramp

primary
#50229B
secondary
#99C059
accent
#E741A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #50229B

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

Preview Lab → · Contrast checker → · Palette generator →

#50229B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva