#4D236B#4D236B

#4D236B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.2% C 0.123 H 308.2°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#4D236B
RGBrgb(77, 35, 107)
HSLhsl(275, 51%, 28%)
HSVhsv(275, 67%, 42%)
CMYKcmyk(28%, 67.3%, 0%, 58%)
CIE-LABlab(23.14, 33.80, -34.22)
CIE-LCHlch(23.14, 48.10, 314.65°)
OKLaboklab(35.21% 0.076 -0.0967)
OKLCHoklch(35.21% 0.123 308.2)
XYZxyz(6.3149, 3.8415, 14.3159)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D236B #416B23
analogous
#29236B #4D236B #6B2365
triadic
#4D236B #6B4D23 #236B4D
tetradic
#4D236B #6B2923 #416B23 #23656B
square
#4D236B #6B2923 #416B23 #23656B
split-complementary
#4D236B #656B23 #236B29
monochromatic
#110817 #2C143D #4D236B #6E3299 #8F46C2

Accessibility & contrast

On white

11.88
#4D236B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4D236B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D236B
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D236B#FFFFFF#000000##FFFFFF
##4D236B1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366D
Deuteranopia (green-blind)
#163869
Tritanopia (blue-blind)
#483243
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d236b;
/* rgb */ color: rgb(77, 35, 107);
/* oklch */ color: oklch(35.2% 0.123 308.2);
Tailwind
colors: {
  custom: {
    50: '#826196',
    500: '#4d236b',
    950: '#000000',
  },
}
SCSS
$custom: #4d236b;
$custom-light: #826196;
$custom-dark: #000000;
JSON
{
  "hex": "#4d236b",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 107
  },
  "hsl": {
    "h": 275,
    "s": 50.704,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35207,
    "c": 0.12296,
    "h": 308.2
  },
  "luminance": 0.03841
}

Semantic roles & 50–950 ramp

primary
#4D236B
secondary
#6E9E4B
accent
#DA4E88
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4D236B

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

Preview Lab → · Contrast checker → · Palette generator →

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