#4D107B#4D107B

#4D107B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.163 H 304.3°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#4D107B
RGBrgb(77, 16, 123)
HSLhsl(274, 77%, 27%)
HSVhsv(274, 87%, 48%)
CMYKcmyk(37.4%, 87%, 0%, 51.8%)
CIE-LABlab(21.50, 46.14, -47.16)
CIE-LCHlch(21.50, 65.98, 314.37°)
OKLaboklab(34.46% 0.0917 -0.1346)
OKLCHoklch(34.46% 0.163 304.3)
XYZxyz(6.8202, 3.3784, 19.0279)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D107B #3E7B10
analogous
#18107B #4D107B #7B1073
triadic
#4D107B #7B4D10 #107B4D
tetradic
#4D107B #7B1810 #3E7B10 #10737B
square
#4D107B #7B1810 #3E7B10 #10737B
split-complementary
#4D107B #737B10 #107B18
monochromatic
#11041B #2B0945 #4D107B #6F17B1 #9023E2

Accessibility & contrast

On white

12.53
#4D107B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4D107B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D107B
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D107B#FFFFFF#000000##FFFFFF
##4D107B1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#442F48
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d107b;
/* rgb */ color: rgb(77, 16, 123);
/* oklch */ color: oklch(34.5% 0.163 304.3);
Tailwind
colors: {
  custom: {
    50: '#8458a2',
    500: '#4d107b',
    950: '#000000',
  },
}
SCSS
$custom: #4d107b;
$custom-light: #8458a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d107b",
  "rgb": {
    "r": 77,
    "g": 16,
    "b": 123
  },
  "hsl": {
    "h": 274.206,
    "s": 76.978,
    "l": 27.255
  },
  "oklch": {
    "l": 0.34457,
    "c": 0.16284,
    "h": 304.3
  },
  "luminance": 0.03378
}

Semantic roles & 50–950 ramp

primary
#4D107B
secondary
#6BB235
accent
#F43486
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D107B

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

Preview Lab → · Contrast checker → · Palette generator →

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