#4B117E#4B117E

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

Color values

HEX#4B117E
RGBrgb(75, 17, 126)
HSLhsl(272, 76%, 28%)
HSVhsv(272, 87%, 49%)
CMYKcmyk(40.5%, 86.5%, 0%, 50.6%)
CIE-LABlab(21.59, 46.22, -48.93)
CIE-LCHlch(21.59, 67.31, 313.37°)
OKLaboklab(34.54% 0.0868 -0.1399)
OKLCHoklch(34.54% 0.165 301.8)
XYZxyz(6.8671, 3.4031, 20.0297)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B117E #447E11
analogous
#15117E #4B117E #7E117A
triadic
#4B117E #7E4B11 #117E4B
tetradic
#4B117E #7E1511 #447E11 #117A7E
square
#4B117E #7E1511 #447E11 #117A7E
split-complementary
#4B117E #7A7E11 #117E15
monochromatic
#10041B #2B0A48 #4B117E #6B18B4 #8B27E2

Accessibility & contrast

On white

12.50
#4B117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B117E
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B117E#FFFFFF#000000##FFFFFF
##4B117E1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#40314A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4b117e;
/* rgb */ color: rgb(75, 17, 126);
/* oklch */ color: oklch(34.5% 0.165 301.8);
Tailwind
colors: {
  custom: {
    50: '#8359a4',
    500: '#4b117e',
    950: '#000000',
  },
}
SCSS
$custom: #4b117e;
$custom-light: #8359a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4b117e",
  "rgb": {
    "r": 75,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 271.927,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34542,
    "c": 0.16461,
    "h": 301.8
  },
  "luminance": 0.03403
}

Semantic roles & 50–950 ramp

primary
#4B117E
secondary
#71B437
accent
#F3358E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B117E

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

Preview Lab → · Contrast checker → · Palette generator →

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