#4D2F7E#4D2F7E

#4D2F7E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.5% C 0.128 H 297.5°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#4D2F7E
RGBrgb(77, 47, 126)
HSLhsl(263, 46%, 34%)
HSVhsv(263, 63%, 49%)
CMYKcmyk(38.9%, 62.7%, 0%, 50.6%)
CIE-LABlab(27.07, 32.04, -40.02)
CIE-LCHlch(27.07, 51.27, 308.68°)
OKLaboklab(38.49% 0.0593 -0.1138)
OKLCHoklch(38.49% 0.128 297.5)
XYZxyz(7.8420, 5.1171, 20.3091)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2F7E #607E2F
analogous
#2F397E #4D2F7E #752F7E
triadic
#4D2F7E #7E4D2F #2F7E4D
tetradic
#4D2F7E #7E2F39 #607E2F #2F7E75
square
#4D2F7E #7E2F39 #607E2F #2F7E75
split-complementary
#4D2F7E #7E752F #397E2F
monochromatic
#170E25 #321E51 #4D2F7E #6840AB #8863C5

Accessibility & contrast

On white

10.38
#4D2F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4D2F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2F7E
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2F7E#FFFFFF#000000##FFFFFF
##4D2F7E1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#0D3F7C
Tritanopia (blue-blind)
#424052
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d2f7e;
/* rgb */ color: rgb(77, 47, 126);
/* oklch */ color: oklch(38.5% 0.128 297.5);
Tailwind
colors: {
  custom: {
    50: '#8369a4',
    500: '#4d2f7e',
    950: '#000000',
  },
}
SCSS
$custom: #4d2f7e;
$custom-light: #8369a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2f7e",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 262.785,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38493,
    "c": 0.12831,
    "h": 297.5
  },
  "luminance": 0.05117
}

Semantic roles & 50–950 ramp

primary
#4D2F7E
secondary
#8EAC5D
accent
#D552A4
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4D2F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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