#4D239F#4D239F

#4D239F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.184 H 291.0°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#4D239F
RGBrgb(77, 35, 159)
HSLhsl(260, 64%, 38%)
HSVhsv(260, 78%, 62%)
CMYKcmyk(51.6%, 78%, 0%, 37.6%)
CIE-LABlab(27.53, 47.79, -59.69)
CIE-LCHlch(27.53, 76.46, 308.68°)
OKLaboklab(39.68% 0.0657 -0.1715)
OKLCHoklch(39.68% 0.184 291)
XYZxyz(9.9178, 5.2826, 33.2912)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D239F #759F23
analogous
#23379F #4D239F #8B239F
triadic
#4D239F #9F4D23 #239F4D
tetradic
#4D239F #9F2337 #759F23 #239F8B
square
#4D239F #9F2337 #759F23 #239F8B
split-complementary
#4D239F #9F8B23 #379F23
monochromatic
#1C0D3B #35186D #4D239F #652ED1 #8A60DC

Accessibility & contrast

On white

10.21
#4D239F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4D239F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D239F
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D239F#FFFFFF#000000##FFFFFF
##4D239F1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003E9D
Tritanopia (blue-blind)
#304660
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4d239f;
/* rgb */ color: rgb(77, 35, 159);
/* oklch */ color: oklch(39.7% 0.184 291.0);
Tailwind
colors: {
  custom: {
    50: '#8863bc',
    500: '#4d239f',
    950: '#000000',
  },
}
SCSS
$custom: #4d239f;
$custom-light: #8863bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d239f",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 159
  },
  "hsl": {
    "h": 260.323,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39682,
    "c": 0.18365,
    "h": 291
  },
  "luminance": 0.05283
}

Semantic roles & 50–950 ramp

primary
#4D239F
secondary
#9FC15D
accent
#E741AF
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D239F

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

Preview Lab → · Contrast checker → · Palette generator →

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