#4D228F#4D228F

#4D228F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.166 H 295.2°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#4D228F
RGBrgb(77, 34, 143)
HSLhsl(264, 62%, 35%)
HSVhsv(264, 76%, 56%)
CMYKcmyk(46.2%, 76.2%, 0%, 43.9%)
CIE-LABlab(25.88, 43.87, -52.57)
CIE-LCHlch(25.88, 68.47, 309.85°)
OKLaboklab(38.07% 0.071 -0.1506)
OKLCHoklch(38.07% 0.166 295.2)
XYZxyz(8.5892, 4.7048, 26.4368)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D228F #648F22
analogous
#222D8F #4D228F #84228F
triadic
#4D228F #8F4D22 #228F4D
tetradic
#4D228F #8F222D #648F22 #228F84
square
#4D228F #8F222D #648F22 #228F84
split-complementary
#4D228F #8F8422 #2D8F22
monochromatic
#180A2C #32165E #4D228F #682EC0 #8855D7

Accessibility & contrast

On white

10.82
#4D228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4D228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D228F
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D228F#FFFFFF#000000##FFFFFF
##4D228F1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#3A3F57
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4d228f;
/* rgb */ color: rgb(77, 34, 143);
/* oklch */ color: oklch(38.1% 0.166 295.2);
Tailwind
colors: {
  custom: {
    50: '#8662b1',
    500: '#4d228f',
    950: '#000000',
  },
}
SCSS
$custom: #4d228f;
$custom-light: #8662b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d228f",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 263.67,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38072,
    "c": 0.16649,
    "h": 295.2
  },
  "luminance": 0.04705
}

Semantic roles & 50–950 ramp

primary
#4D228F
secondary
#91BA52
accent
#E543A5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4D228F

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

Preview Lab → · Contrast checker → · Palette generator →

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