#4D1875#4D1875

#4D1875 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.149 H 305.7°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#4D1875
RGBrgb(77, 24, 117)
HSLhsl(274, 66%, 28%)
HSVhsv(274, 79%, 46%)
CMYKcmyk(34.2%, 79.5%, 0%, 54.1%)
CIE-LABlab(22.00, 41.69, -42.51)
CIE-LCHlch(22.00, 59.54, 314.44°)
OKLaboklab(34.64% 0.0869 -0.121)
OKLCHoklch(34.64% 0.149 305.7)
XYZxyz(6.5974, 3.5155, 17.1572)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1875 #407518
analogous
#1F1875 #4D1875 #75186E
triadic
#4D1875 #754D18 #18754D
tetradic
#4D1875 #751F18 #407518 #186E75
square
#4D1875 #751F18 #407518 #186E75
split-complementary
#4D1875 #6E7518 #18751F
monochromatic
#110519 #2C0E42 #4D1875 #6E22A8 #8F32D5

Accessibility & contrast

On white

12.33
#4D1875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4D1875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1875
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1875#FFFFFF#000000##FFFFFF
##4D18751.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003378
Deuteranopia (green-blind)
#003573
Tritanopia (blue-blind)
#462F46
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4d1875;
/* rgb */ color: rgb(77, 24, 117);
/* oklch */ color: oklch(34.6% 0.149 305.7);
Tailwind
colors: {
  custom: {
    50: '#835b9d',
    500: '#4d1875',
    950: '#000000',
  },
}
SCSS
$custom: #4d1875;
$custom-light: #835b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1875",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 274.194,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34641,
    "c": 0.14896,
    "h": 305.7
  },
  "luminance": 0.03515
}

Semantic roles & 50–950 ramp

primary
#4D1875
secondary
#6DAA3F
accent
#E93F88
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D1875

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

Preview Lab → · Contrast checker → · Palette generator →

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