#4D238F#4D238F

#4D238F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.165 H 295.1°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#4D238F
RGBrgb(77, 35, 143)
HSLhsl(263, 61%, 35%)
HSVhsv(263, 76%, 56%)
CMYKcmyk(46.2%, 75.5%, 0%, 43.9%)
CIE-LABlab(26.05, 43.39, -52.29)
CIE-LCHlch(26.05, 67.95, 309.68°)
OKLaboklab(38.19% 0.0701 -0.1498)
OKLCHoklch(38.19% 0.165 295.1)
XYZxyz(8.6182, 4.7628, 26.4465)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D238F #658F23
analogous
#232F8F #4D238F #83238F
triadic
#4D238F #8F4D23 #238F4D
tetradic
#4D238F #8F232F #658F23 #238F83
square
#4D238F #8F232F #658F23 #238F83
split-complementary
#4D238F #8F8323 #2F8F23
monochromatic
#180B2D #33175E #4D238F #672FC0 #8857D6

Accessibility & contrast

On white

10.75
#4D238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4D238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D238F
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D238F#FFFFFF#000000##FFFFFF
##4D238F1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#3A3F57
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d238f;
/* rgb */ color: rgb(77, 35, 143);
/* oklch */ color: oklch(38.2% 0.165 295.1);
Tailwind
colors: {
  custom: {
    50: '#8662b1',
    500: '#4d238f',
    950: '#000000',
  },
}
SCSS
$custom: #4d238f;
$custom-light: #8662b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d238f",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 263.333,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38193,
    "c": 0.16536,
    "h": 295.1
  },
  "luminance": 0.04763
}

Semantic roles & 50–950 ramp

primary
#4D238F
secondary
#92BA54
accent
#E444A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4D238F

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

Preview Lab → · Contrast checker → · Palette generator →

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