#4D126B#4D126B

#4D126B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.145 H 310.8°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#4D126B
RGBrgb(77, 18, 107)
HSLhsl(280, 71%, 25%)
HSVhsv(280, 83%, 42%)
CMYKcmyk(28%, 83.2%, 0%, 58%)
CIE-LABlab(20.33, 41.71, -38.76)
CIE-LCHlch(20.33, 56.94, 317.11°)
OKLaboklab(33.21% 0.0949 -0.1099)
OKLCHoklch(33.21% 0.145 310.8)
XYZxyz(5.9302, 3.0721, 14.1876)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D126B #306B12
analogous
#20126B #4D126B #6B125D
triadic
#4D126B #6B4D12 #126B4D
tetradic
#4D126B #6B2012 #306B12 #125D6B
square
#4D126B #6B2012 #306B12 #125D6B
split-complementary
#4D126B #5D6B12 #126B20
monochromatic
#13041A #270937 #4D126B #731B9F #9824D4

Accessibility & contrast

On white

13.01
#4D126B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#4D126B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D126B
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D126B#FFFFFF#000000##FFFFFF
##4D126B1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6D
Deuteranopia (green-blind)
#003269
Tritanopia (blue-blind)
#49283F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4d126b;
/* rgb */ color: rgb(77, 18, 107);
/* oklch */ color: oklch(33.2% 0.145 310.8);
Tailwind
colors: {
  custom: {
    50: '#835896',
    500: '#4d126b',
    950: '#000000',
  },
}
SCSS
$custom: #4d126b;
$custom-light: #835896;
$custom-dark: #000000;
JSON
{
  "hex": "#4d126b",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 107
  },
  "hsl": {
    "h": 279.775,
    "s": 71.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.33206,
    "c": 0.14518,
    "h": 310.8
  },
  "luminance": 0.03072
}

Semantic roles & 50–950 ramp

primary
#4D126B
secondary
#5BA236
accent
#EE3A77
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D126B

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

Preview Lab → · Contrast checker → · Palette generator →

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