#4D2297#4D2297

#4D2297 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.176 H 293.1°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#4D2297
RGBrgb(77, 34, 151)
HSLhsl(262, 63%, 36%)
HSVhsv(262, 77%, 59%)
CMYKcmyk(49%, 77.5%, 0%, 40.8%)
CIE-LABlab(26.61, 46.06, -56.31)
CIE-LCHlch(26.61, 72.74, 309.28°)
OKLaboklab(38.81% 0.0688 -0.1616)
OKLCHoklch(38.81% 0.176 293.1)
XYZxyz(9.2170, 4.9559, 29.7431)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2297 #6C9722
analogous
#223297 #4D2297 #882297
triadic
#4D2297 #974D22 #22974D
tetradic
#4D2297 #972232 #6C9722 #229788
square
#4D2297 #972232 #6C9722 #229788
split-complementary
#4D2297 #978822 #329722
monochromatic
#1A0C33 #341765 #4D2297 #662DC9 #895ADA

Accessibility & contrast

On white

10.55
#4D2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4D2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2297
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2297#FFFFFF#000000##FFFFFF
##4D22971.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#36425B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d2297;
/* rgb */ color: rgb(77, 34, 151);
/* oklch */ color: oklch(38.8% 0.176 293.1);
Tailwind
colors: {
  custom: {
    50: '#8762b7',
    500: '#4d2297',
    950: '#000000',
  },
}
SCSS
$custom: #4d2297;
$custom-light: #8762b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2297",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 262.051,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38811,
    "c": 0.17561,
    "h": 293.1
  },
  "luminance": 0.04956
}

Semantic roles & 50–950 ramp

primary
#4D2297
secondary
#98BE57
accent
#E642AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4D2297

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

Preview Lab → · Contrast checker → · Palette generator →

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