#4D33A6#4D33A6

#4D33A6 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.4% C 0.174 H 286.8°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#4D33A6
RGBrgb(77, 51, 166)
HSLhsl(254, 53%, 43%)
HSVhsv(254, 69%, 65%)
CMYKcmyk(53.6%, 69.3%, 0%, 34.9%)
CIE-LABlab(31.11, 41.53, -58.06)
CIE-LCHlch(31.11, 71.38, 305.57°)
OKLaboklab(42.41% 0.0504 -0.1668)
OKLCHoklch(42.41% 0.174 286.8)
XYZxyz(11.1253, 6.6980, 36.7756)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D33A6 #8CA633
analogous
#3353A6 #4D33A6 #8633A6
triadic
#4D33A6 #A64D33 #33A64D
tetradic
#4D33A6 #A63353 #8CA633 #33A686
square
#4D33A6 #A63353 #8CA633 #33A686
split-complementary
#4D33A6 #A68633 #53A633
monochromatic
#221648 #372577 #4D33A6 #694EC9 #917CD7

Accessibility & contrast

On white

8.98
#4D33A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4D33A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D33A6
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D33A6#FFFFFF#000000##FFFFFF
##4D33A61.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA9
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#295168
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4d33a6;
/* rgb */ color: rgb(77, 51, 166);
/* oklch */ color: oklch(42.4% 0.174 286.8);
Tailwind
colors: {
  custom: {
    50: '#886dc1',
    500: '#4d33a6',
    950: '#000000',
  },
}
SCSS
$custom: #4d33a6;
$custom-light: #886dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d33a6",
  "rgb": {
    "r": 77,
    "g": 51,
    "b": 166
  },
  "hsl": {
    "h": 253.565,
    "s": 52.995,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42414,
    "c": 0.17423,
    "h": 286.8
  },
  "luminance": 0.06699
}

Semantic roles & 50–950 ramp

primary
#4D33A6
secondary
#AFC075
accent
#DC4BBC
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4D33A6

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

Preview Lab → · Contrast checker → · Palette generator →

#4D33A6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva