#4B147B#4B147B

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

Color values

HEX#4B147B
RGBrgb(75, 20, 123)
HSLhsl(272, 72%, 28%)
HSVhsv(272, 84%, 48%)
CMYKcmyk(39%, 83.7%, 0%, 51.8%)
CIE-LABlab(21.68, 44.42, -46.89)
CIE-LCHlch(21.68, 64.59, 313.45°)
OKLaboklab(34.52% 0.0856 -0.1339)
OKLCHoklch(34.52% 0.159 302.6)
XYZxyz(6.7261, 3.4262, 19.0420)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B147B #447B14
analogous
#18147B #4B147B #7B1477
triadic
#4B147B #7B4B14 #147B4B
tetradic
#4B147B #7B1814 #447B14 #14777B
square
#4B147B #7B1814 #447B14 #14777B
split-complementary
#4B147B #777B14 #147B18
monochromatic
#10041A #2B0B46 #4B147B #6B1DB0 #8B2DDD

Accessibility & contrast

On white

12.46
#4B147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B147B
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B147B#FFFFFF#000000##FFFFFF
##4B147B1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b147b;
/* rgb */ color: rgb(75, 20, 123);
/* oklch */ color: oklch(34.5% 0.159 302.6);
Tailwind
colors: {
  custom: {
    50: '#835aa2',
    500: '#4b147b',
    950: '#000000',
  },
}
SCSS
$custom: #4b147b;
$custom-light: #835aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#4b147b",
  "rgb": {
    "r": 75,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 272.039,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34515,
    "c": 0.15892,
    "h": 302.6
  },
  "luminance": 0.03426
}

Semantic roles & 50–950 ramp

primary
#4B147B
secondary
#71B13A
accent
#EF398E
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B147B

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

Preview Lab → · Contrast checker → · Palette generator →

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