#4D238C#4D238C

#4D238C is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.162 H 295.9°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#4D238C
RGBrgb(77, 35, 140)
HSLhsl(264, 60%, 34%)
HSVhsv(264, 75%, 55%)
CMYKcmyk(45%, 75%, 0%, 45.1%)
CIE-LABlab(25.78, 42.57, -50.86)
CIE-LCHlch(25.78, 66.32, 309.93°)
OKLaboklab(37.92% 0.0708 -0.1456)
OKLCHoklch(37.92% 0.162 295.9)
XYZxyz(8.3940, 4.6731, 25.2656)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D238C #628C23
analogous
#232E8C #4D238C #82238C
triadic
#4D238C #8C4D23 #238C4D
tetradic
#4D238C #8C232E #628C23 #238C82
square
#4D238C #8C232E #628C23 #238C82
split-complementary
#4D238C #8C8223 #2E8C23
monochromatic
#170B2A #32175B #4D238C #682FBD #8855D4

Accessibility & contrast

On white

10.85
#4D238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4D238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D238C
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D238C#FFFFFF#000000##FFFFFF
##4D238C1.0010.851.9310.85
#FFFFFF10.851.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#003C8A
Tritanopia (blue-blind)
#3C3E55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4d238c;
/* rgb */ color: rgb(77, 35, 140);
/* oklch */ color: oklch(37.9% 0.162 295.9);
Tailwind
colors: {
  custom: {
    50: '#8562ae',
    500: '#4d238c',
    950: '#000000',
  },
}
SCSS
$custom: #4d238c;
$custom-light: #8562ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d238c",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 264,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37923,
    "c": 0.16189,
    "h": 295.9
  },
  "luminance": 0.04673
}

Semantic roles & 50–950 ramp

primary
#4D238C
secondary
#90B852
accent
#E345A4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4D238C

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

Preview Lab → · Contrast checker → · Palette generator →

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