#4D236F#4D236F

#4D236F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.128 H 306.3°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#4D236F
RGBrgb(77, 35, 111)
HSLhsl(273, 52%, 29%)
HSVhsv(273, 68%, 44%)
CMYKcmyk(30.6%, 68.5%, 0%, 56.5%)
CIE-LABlab(23.43, 34.83, -36.33)
CIE-LCHlch(23.43, 50.33, 313.79°)
OKLaboklab(35.51% 0.0757 -0.1029)
OKLCHoklch(35.51% 0.128 306.3)
XYZxyz(6.5302, 3.9276, 15.4499)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D236F #456F23
analogous
#27236F #4D236F #6F236B
triadic
#4D236F #6F4D23 #236F4D
tetradic
#4D236F #6F2723 #456F23 #236B6F
square
#4D236F #6F2723 #456F23 #236B6F
split-complementary
#4D236F #6B6F23 #236F27
monochromatic
#100717 #2D1440 #4D236F #6D329E #8D47C5

Accessibility & contrast

On white

11.76
#4D236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4D236F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D236F
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D236F#FFFFFF#000000##FFFFFF
##4D236F1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003671
Deuteranopia (green-blind)
#11386D
Tritanopia (blue-blind)
#473345
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d236f;
/* rgb */ color: rgb(77, 35, 111);
/* oklch */ color: oklch(35.5% 0.128 306.3);
Tailwind
colors: {
  custom: {
    50: '#826199',
    500: '#4d236f',
    950: '#000000',
  },
}
SCSS
$custom: #4d236f;
$custom-light: #826199;
$custom-dark: #000000;
JSON
{
  "hex": "#4d236f",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 273.158,
    "s": 52.055,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35509,
    "c": 0.12773,
    "h": 306.3
  },
  "luminance": 0.03928
}

Semantic roles & 50–950 ramp

primary
#4D236F
secondary
#72A24C
accent
#DB4C8C
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4D236F

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

Preview Lab → · Contrast checker → · Palette generator →

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