#4D239C#4D239C

#4D239C is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.180 H 291.7°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#4D239C
RGBrgb(77, 35, 156)
HSLhsl(261, 63%, 37%)
HSVhsv(261, 78%, 61%)
CMYKcmyk(50.6%, 77.6%, 0%, 38.8%)
CIE-LABlab(27.24, 46.96, -58.33)
CIE-LCHlch(27.24, 74.88, 308.84°)
OKLaboklab(39.4% 0.0666 -0.1675)
OKLCHoklch(39.4% 0.18 291.7)
XYZxyz(9.6607, 5.1798, 31.9368)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D239C #729C23
analogous
#23369C #4D239C #89239C
triadic
#4D239C #9C4D23 #239C4D
tetradic
#4D239C #9C2336 #729C23 #239C89
square
#4D239C #9C2336 #729C23 #239C89
split-complementary
#4D239C #9C8923 #369C23
monochromatic
#1C0D38 #34186A #4D239C #662ECE #8A5EDB

Accessibility & contrast

On white

10.31
#4D239C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4D239C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D239C
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D239C#FFFFFF#000000##FFFFFF
##4D239C1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003E9A
Tritanopia (blue-blind)
#32455E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d239c;
/* rgb */ color: rgb(77, 35, 156);
/* oklch */ color: oklch(39.4% 0.180 291.7);
Tailwind
colors: {
  custom: {
    50: '#8763ba',
    500: '#4d239c',
    950: '#000000',
  },
}
SCSS
$custom: #4d239c;
$custom-light: #8763ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4d239c",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 156
  },
  "hsl": {
    "h": 260.826,
    "s": 63.351,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39396,
    "c": 0.18025,
    "h": 291.7
  },
  "luminance": 0.0518
}

Semantic roles & 50–950 ramp

primary
#4D239C
secondary
#9DC05B
accent
#E641AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4D239C

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

Preview Lab → · Contrast checker → · Palette generator →

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