#4D2F7B#4D2F7B

#4D2F7B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.3% C 0.124 H 298.5°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#4D2F7B
RGBrgb(77, 47, 123)
HSLhsl(264, 45%, 33%)
HSVhsv(264, 62%, 48%)
CMYKcmyk(37.4%, 61.8%, 0%, 51.8%)
CIE-LABlab(26.85, 31.19, -38.48)
CIE-LCHlch(26.85, 49.53, 309.03°)
OKLaboklab(38.27% 0.0594 -0.1092)
OKLCHoklch(38.27% 0.124 298.5)
XYZxyz(7.6513, 5.0408, 19.3049)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2F7B #5D7B2F
analogous
#2F377B #4D2F7B #732F7B
triadic
#4D2F7B #7B4D2F #2F7B4D
tetradic
#4D2F7B #7B2F37 #5D7B2F #2F7B73
square
#4D2F7B #7B2F37 #5D7B2F #2F7B73
split-complementary
#4D2F7B #7B732F #377B2F
monochromatic
#160D22 #311E4F #4D2F7B #6940A7 #8862C3

Accessibility & contrast

On white

10.46
#4D2F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4D2F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2F7B
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2F7B#FFFFFF#000000##FFFFFF
##4D2F7B1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02407D
Deuteranopia (green-blind)
#133F79
Tritanopia (blue-blind)
#433F50
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d2f7b;
/* rgb */ color: rgb(77, 47, 123);
/* oklch */ color: oklch(38.3% 0.124 298.5);
Tailwind
colors: {
  custom: {
    50: '#8269a2',
    500: '#4d2f7b',
    950: '#000000',
  },
}
SCSS
$custom: #4d2f7b;
$custom-light: #8269a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2f7b",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 263.684,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38267,
    "c": 0.12435,
    "h": 298.5
  },
  "luminance": 0.05041
}

Semantic roles & 50–950 ramp

primary
#4D2F7B
secondary
#8BAA5C
accent
#D453A1
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4D2F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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