#4D239B#4D239B

#4D239B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.179 H 291.9°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#4D239B
RGBrgb(77, 35, 155)
HSLhsl(261, 63%, 37%)
HSVhsv(261, 77%, 61%)
CMYKcmyk(50.3%, 77.4%, 0%, 39.2%)
CIE-LABlab(27.15, 46.68, -57.87)
CIE-LCHlch(27.15, 74.36, 308.89°)
OKLaboklab(39.3% 0.0669 -0.1662)
OKLCHoklch(39.3% 0.179 291.9)
XYZxyz(9.5763, 5.1460, 31.4927)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D239B #719B23
analogous
#23359B #4D239B #89239B
triadic
#4D239B #9B4D23 #239B4D
tetradic
#4D239B #9B2335 #719B23 #239B89
square
#4D239B #9B2335 #719B23 #239B89
split-complementary
#4D239B #9B8923 #359B23
monochromatic
#1B0C37 #341869 #4D239B #662ECD #895EDB

Accessibility & contrast

On white

10.35
#4D239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4D239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D239B
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D239B#FFFFFF#000000##FFFFFF
##4D239B1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003E99
Tritanopia (blue-blind)
#33445E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d239b;
/* rgb */ color: rgb(77, 35, 155);
/* oklch */ color: oklch(39.3% 0.179 291.9);
Tailwind
colors: {
  custom: {
    50: '#8763ba',
    500: '#4d239b',
    950: '#000000',
  },
}
SCSS
$custom: #4d239b;
$custom-light: #8763ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4d239b",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 261,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39302,
    "c": 0.17911,
    "h": 291.9
  },
  "luminance": 0.05146
}

Semantic roles & 50–950 ramp

primary
#4D239B
secondary
#9CBF5A
accent
#E642AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4D239B

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

Preview Lab → · Contrast checker → · Palette generator →

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