#4D2F94#4D2F94

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

Color values

HEX#4D2F94
RGBrgb(77, 47, 148)
HSLhsl(258, 52%, 38%)
HSVhsv(258, 68%, 58%)
CMYKcmyk(48%, 68.2%, 0%, 42%)
CIE-LABlab(28.77, 38.42, -50.93)
CIE-LCHlch(28.77, 63.80, 307.03°)
OKLaboklab(40.26% 0.0572 -0.1459)
OKLCHoklch(40.26% 0.157 291.4)
XYZxyz(9.4209, 5.7486, 28.6244)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2F94 #76942F
analogous
#2F4394 #4D2F94 #7F2F94
triadic
#4D2F94 #944D2F #2F944D
tetradic
#4D2F94 #942F43 #76942F #2F947F
square
#4D2F94 #942F43 #76942F #2F947F
split-complementary
#4D2F94 #947F2F #43942F
monochromatic
#1D1137 #352066 #4D2F94 #653EC2 #8A6DD1

Accessibility & contrast

On white

9.77
#4D2F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4D2F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2F94
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2F94#FFFFFF#000000##FFFFFF
##4D2F941.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004597
Deuteranopia (green-blind)
#004292
Tritanopia (blue-blind)
#37485D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d2f94;
/* rgb */ color: rgb(77, 47, 148);
/* oklch */ color: oklch(40.3% 0.157 291.4);
Tailwind
colors: {
  custom: {
    50: '#856ab4',
    500: '#4d2f94',
    950: '#000000',
  },
}
SCSS
$custom: #4d2f94;
$custom-light: #856ab4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2f94",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 257.822,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40263,
    "c": 0.15666,
    "h": 291.4
  },
  "luminance": 0.05749
}

Semantic roles & 50–950 ramp

primary
#4D2F94
secondary
#A0B867
accent
#DB4DB1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2F94

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

Preview Lab → · Contrast checker → · Palette generator →

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