#4D236E#4D236E

#4D236E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.4% C 0.127 H 306.8°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#4D236E
RGBrgb(77, 35, 110)
HSLhsl(274, 52%, 28%)
HSVhsv(274, 68%, 43%)
CMYKcmyk(30%, 68.2%, 0%, 56.9%)
CIE-LABlab(23.36, 34.57, -35.81)
CIE-LCHlch(23.36, 49.77, 313.99°)
OKLaboklab(35.43% 0.0758 -0.1013)
OKLCHoklch(35.43% 0.127 306.8)
XYZxyz(6.4755, 3.9057, 15.1616)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D236E #446E23
analogous
#27236E #4D236E #6E2369
triadic
#4D236E #6E4D23 #236E4D
tetradic
#4D236E #6E2723 #446E23 #23696E
square
#4D236E #6E2723 #446E23 #23696E
split-complementary
#4D236E #696E23 #236E27
monochromatic
#100717 #2C1440 #4D236E #6D329C #8D47C4

Accessibility & contrast

On white

11.79
#4D236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4D236E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D236E
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D236E#FFFFFF#000000##FFFFFF
##4D236E1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003670
Deuteranopia (green-blind)
#12386C
Tritanopia (blue-blind)
#483345
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d236e;
/* rgb */ color: rgb(77, 35, 110);
/* oklch */ color: oklch(35.4% 0.127 306.8);
Tailwind
colors: {
  custom: {
    50: '#826198',
    500: '#4d236e',
    950: '#000000',
  },
}
SCSS
$custom: #4d236e;
$custom-light: #826198;
$custom-dark: #000000;
JSON
{
  "hex": "#4d236e",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 273.6,
    "s": 51.724,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35433,
    "c": 0.12654,
    "h": 306.8
  },
  "luminance": 0.03906
}

Semantic roles & 50–950 ramp

primary
#4D236E
secondary
#71A14C
accent
#DB4D8B
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4D236E

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

Preview Lab → · Contrast checker → · Palette generator →

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