#4D2883#4D2883

#4D2883 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.145 H 297.7°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#4D2883
RGBrgb(77, 40, 131)
HSLhsl(264, 53%, 34%)
HSVhsv(264, 69%, 51%)
CMYKcmyk(41.2%, 69.5%, 0%, 48.6%)
CIE-LABlab(25.96, 37.47, -44.95)
CIE-LCHlch(25.96, 58.52, 309.82°)
OKLaboklab(37.82% 0.0673 -0.1282)
OKLCHoklch(37.82% 0.145 297.7)
XYZxyz(7.9150, 4.7339, 21.9651)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2883 #5E8328
analogous
#283083 #4D2883 #7A2883
triadic
#4D2883 #834D28 #28834D
tetradic
#4D2883 #832830 #5E8328 #28837A
square
#4D2883 #832830 #5E8328 #28837A
split-complementary
#4D2883 #837A28 #308328
monochromatic
#160B25 #311A54 #4D2883 #6936B2 #8859CC

Accessibility & contrast

On white

10.79
#4D2883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4D2883 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2883
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2883#FFFFFF#000000##FFFFFF
##4D28831.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E86
Deuteranopia (green-blind)
#003C81
Tritanopia (blue-blind)
#403E52
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4d2883;
/* rgb */ color: rgb(77, 40, 131);
/* oklch */ color: oklch(37.8% 0.145 297.7);
Tailwind
colors: {
  custom: {
    50: '#8465a8',
    500: '#4d2883',
    950: '#000000',
  },
}
SCSS
$custom: #4d2883;
$custom-light: #8465a8;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2883",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 131
  },
  "hsl": {
    "h": 264.396,
    "s": 53.216,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37816,
    "c": 0.14483,
    "h": 297.7
  },
  "luminance": 0.04734
}

Semantic roles & 50–950 ramp

primary
#4D2883
secondary
#8CB155
accent
#DD4BA1
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2883

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

Preview Lab → · Contrast checker → · Palette generator →

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