#4D2E82#4D2E82

#4D2E82 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.6% C 0.135 H 296.5°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#4D2E82
RGBrgb(77, 46, 130)
HSLhsl(262, 48%, 35%)
HSVhsv(262, 65%, 51%)
CMYKcmyk(40.8%, 64.6%, 0%, 49%)
CIE-LABlab(27.14, 33.78, -42.41)
CIE-LCHlch(27.14, 54.22, 308.53°)
OKLaboklab(38.64% 0.0603 -0.1208)
OKLCHoklch(38.64% 0.135 296.5)
XYZxyz(8.0658, 5.1433, 21.6826)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2E82 #63822E
analogous
#2E3982 #4D2E82 #772E82
triadic
#4D2E82 #824D2E #2E824D
tetradic
#4D2E82 #822E39 #63822E #2E8277
square
#4D2E82 #822E39 #63822E #2E8277
split-complementary
#4D2E82 #82772E #39822E
monochromatic
#170E28 #321E55 #4D2E82 #683EAF #8863C8

Accessibility & contrast

On white

10.35
#4D2E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4D2E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2E82
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2E82#FFFFFF#000000##FFFFFF
##4D2E821.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004185
Deuteranopia (green-blind)
#003F80
Tritanopia (blue-blind)
#404153
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d2e82;
/* rgb */ color: rgb(77, 46, 130);
/* oklch */ color: oklch(38.6% 0.135 296.5);
Tailwind
colors: {
  custom: {
    50: '#8368a7',
    500: '#4d2e82',
    950: '#000000',
  },
}
SCSS
$custom: #4d2e82;
$custom-light: #8368a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2e82",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 130
  },
  "hsl": {
    "h": 262.143,
    "s": 47.727,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3864,
    "c": 0.13504,
    "h": 296.5
  },
  "luminance": 0.05143
}

Semantic roles & 50–950 ramp

primary
#4D2E82
secondary
#90AE5D
accent
#D750A6
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4D2E82

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

Preview Lab → · Contrast checker → · Palette generator →

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