#4D127B#4D127B

#4D127B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.6% C 0.161 H 304.1°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#4D127B
RGBrgb(77, 18, 123)
HSLhsl(274, 74%, 28%)
HSVhsv(274, 85%, 48%)
CMYKcmyk(37.4%, 85.4%, 0%, 51.8%)
CIE-LABlab(21.73, 45.47, -46.79)
CIE-LCHlch(21.73, 65.24, 314.18°)
OKLaboklab(34.62% 0.0903 -0.1335)
OKLCHoklch(34.62% 0.161 304.1)
XYZxyz(6.8512, 3.4405, 19.0382)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D127B #407B12
analogous
#18127B #4D127B #7B1275
triadic
#4D127B #7B4D12 #127B4D
tetradic
#4D127B #7B1812 #407B12 #12757B
square
#4D127B #7B1812 #407B12 #12757B
split-complementary
#4D127B #757B12 #127B18
monochromatic
#11041B #2C0A46 #4D127B #6E1AB0 #8F28E0

Accessibility & contrast

On white

12.44
#4D127B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4D127B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D127B
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D127B#FFFFFF#000000##FFFFFF
##4D127B1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#443048
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d127b;
/* rgb */ color: rgb(77, 18, 123);
/* oklch */ color: oklch(34.6% 0.161 304.1);
Tailwind
colors: {
  custom: {
    50: '#8459a2',
    500: '#4d127b',
    950: '#000000',
  },
}
SCSS
$custom: #4d127b;
$custom-light: #8459a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d127b",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 123
  },
  "hsl": {
    "h": 273.714,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34615,
    "c": 0.16115,
    "h": 304.1
  },
  "luminance": 0.0344
}

Semantic roles & 50–950 ramp

primary
#4D127B
secondary
#6DB138
accent
#F13788
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D127B

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

Preview Lab → · Contrast checker → · Palette generator →

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