#4D2E95#4D2E95

#4D2E95 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.159 H 291.4°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#4D2E95
RGBrgb(77, 46, 149)
HSLhsl(258, 53%, 38%)
HSVhsv(258, 69%, 58%)
CMYKcmyk(48.3%, 69.1%, 0%, 41.6%)
CIE-LABlab(28.65, 39.28, -51.75)
CIE-LCHlch(28.65, 64.97, 307.20°)
OKLaboklab(40.2% 0.058 -0.1482)
OKLCHoklch(40.2% 0.159 291.4)
XYZxyz(9.4609, 5.7014, 29.0299)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2E95 #76952E
analogous
#2E4295 #4D2E95 #802E95
triadic
#4D2E95 #954D2E #2E954D
tetradic
#4D2E95 #952E42 #76952E #2E9580
square
#4D2E95 #952E42 #76952E #2E9580
split-complementary
#4D2E95 #95802E #42952E
monochromatic
#1D1137 #352066 #4D2E95 #653DC3 #8A6CD2

Accessibility & contrast

On white

9.81
#4D2E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4D2E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2E95
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2E95#FFFFFF#000000##FFFFFF
##4D2E951.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#36485D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d2e95;
/* rgb */ color: rgb(77, 46, 149);
/* oklch */ color: oklch(40.2% 0.159 291.4);
Tailwind
colors: {
  custom: {
    50: '#8669b5',
    500: '#4d2e95',
    950: '#000000',
  },
}
SCSS
$custom: #4d2e95;
$custom-light: #8669b5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2e95",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 149
  },
  "hsl": {
    "h": 258.058,
    "s": 52.821,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40201,
    "c": 0.15921,
    "h": 291.4
  },
  "luminance": 0.05702
}

Semantic roles & 50–950 ramp

primary
#4D2E95
secondary
#A0B966
accent
#DC4CB1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2E95

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

Preview Lab → · Contrast checker → · Palette generator →

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