#4D2266#4D2266

#4D2266 is a dark, moderate violet. Relative luminance 0.037; OKLCH L 34.7% C 0.119 H 310.8°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#4D2266
RGBrgb(77, 34, 102)
HSLhsl(278, 50%, 27%)
HSVhsv(278, 67%, 40%)
CMYKcmyk(24.5%, 66.7%, 0%, 60%)
CIE-LABlab(22.59, 33.09, -31.85)
CIE-LCHlch(22.59, 45.93, 316.09°)
OKLaboklab(34.7% 0.0775 -0.0897)
OKLCHoklch(34.7% 0.119 310.8)
XYZxyz(6.0304, 3.6813, 12.9607)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2266 #3B6622
analogous
#2B2266 #4D2266 #66225D
triadic
#4D2266 #664D22 #22664D
tetradic
#4D2266 #662B22 #3B6622 #225D66
square
#4D2266 #662B22 #3B6622 #225D66
split-complementary
#4D2266 #5D6622 #22662B
monochromatic
#110817 #2A1338 #4D2266 #703194 #9242C0

Accessibility & contrast

On white

12.10
#4D2266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4D2266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2266
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2266#FFFFFF#000000##FFFFFF
##4D22661.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033468
Deuteranopia (green-blind)
#1B3764
Tritanopia (blue-blind)
#4A2F40
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d2266;
/* rgb */ color: rgb(77, 34, 102);
/* oklch */ color: oklch(34.7% 0.119 310.8);
Tailwind
colors: {
  custom: {
    50: '#816092',
    500: '#4d2266',
    950: '#000000',
  },
}
SCSS
$custom: #4d2266;
$custom-light: #816092;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2266",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 102
  },
  "hsl": {
    "h": 277.941,
    "s": 50,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34695,
    "c": 0.11861,
    "h": 310.8
  },
  "luminance": 0.03681
}

Semantic roles & 50–950 ramp

primary
#4D2266
secondary
#679A4A
accent
#DA4E81
background
#F8F5F9
surface
#EFEAF1
border
#CAC6CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4D2266

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

Preview Lab → · Contrast checker → · Palette generator →

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