#4D2F95#4D2F95

#4D2F95 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.3% C 0.158 H 291.2°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#4D2F95
RGBrgb(77, 47, 149)
HSLhsl(258, 52%, 38%)
HSVhsv(258, 68%, 58%)
CMYKcmyk(48.3%, 68.5%, 0%, 41.6%)
CIE-LABlab(28.85, 38.72, -51.41)
CIE-LCHlch(28.85, 64.36, 306.98°)
OKLaboklab(40.35% 0.057 -0.1473)
OKLCHoklch(40.35% 0.158 291.2)
XYZxyz(9.5004, 5.7804, 29.0431)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2F95 #77952F
analogous
#2F4495 #4D2F95 #802F95
triadic
#4D2F95 #954D2F #2F954D
tetradic
#4D2F95 #952F44 #77952F #2F9580
square
#4D2F95 #952F44 #77952F #2F9580
split-complementary
#4D2F95 #95802F #44952F
monochromatic
#1D1238 #352066 #4D2F95 #663FC2 #8B6DD1

Accessibility & contrast

On white

9.74
#4D2F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4D2F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2F95
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2F95#FFFFFF#000000##FFFFFF
##4D2F951.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004698
Deuteranopia (green-blind)
#004293
Tritanopia (blue-blind)
#36485E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d2f95;
/* rgb */ color: rgb(77, 47, 149);
/* oklch */ color: oklch(40.3% 0.158 291.2);
Tailwind
colors: {
  custom: {
    50: '#856ab5',
    500: '#4d2f95',
    950: '#000000',
  },
}
SCSS
$custom: #4d2f95;
$custom-light: #856ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2f95",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 257.647,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40348,
    "c": 0.15792,
    "h": 291.2
  },
  "luminance": 0.05781
}

Semantic roles & 50–950 ramp

primary
#4D2F95
secondary
#A1B867
accent
#DB4CB1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2F95

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

Preview Lab → · Contrast checker → · Palette generator →

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