#4D237C#4D237C

#4D237C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.143 H 301.1°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#4D237C
RGBrgb(77, 35, 124)
HSLhsl(268, 56%, 31%)
HSVhsv(268, 72%, 49%)
CMYKcmyk(37.9%, 71.8%, 0%, 51.4%)
CIE-LABlab(24.43, 38.24, -43.02)
CIE-LCHlch(24.43, 57.56, 311.64°)
OKLaboklab(36.55% 0.074 -0.1225)
OKLCHoklch(36.55% 0.143 301.1)
XYZxyz(7.2988, 4.2350, 19.4978)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D237C #527C23
analogous
#23257C #4D237C #79237C
triadic
#4D237C #7C4D23 #237C4D
tetradic
#4D237C #7C2325 #527C23 #237C79
square
#4D237C #7C2325 #527C23 #237C79
split-complementary
#4D237C #7C7923 #257C23
monochromatic
#12081D #2F164C #4D237C #6B30AC #894DCD

Accessibility & contrast

On white

11.37
#4D237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4D237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D237C
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D237C#FFFFFF#000000##FFFFFF
##4D237C1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#003A7A
Tritanopia (blue-blind)
#43384C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d237c;
/* rgb */ color: rgb(77, 35, 124);
/* oklch */ color: oklch(36.5% 0.143 301.1);
Tailwind
colors: {
  custom: {
    50: '#8361a3',
    500: '#4d237c',
    950: '#000000',
  },
}
SCSS
$custom: #4d237c;
$custom-light: #8361a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d237c",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 268.315,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36545,
    "c": 0.14316,
    "h": 301.1
  },
  "luminance": 0.04235
}

Semantic roles & 50–950 ramp

primary
#4D237C
secondary
#80AF4C
accent
#DF4998
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D237C

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

Preview Lab → · Contrast checker → · Palette generator →

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