#4B1972#4B1972

#4B1972 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.144 H 305.5°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#4B1972
RGBrgb(75, 25, 114)
HSLhsl(274, 64%, 27%)
HSVhsv(274, 78%, 45%)
CMYKcmyk(34.2%, 78.1%, 0%, 55.3%)
CIE-LABlab(21.60, 40.12, -41.24)
CIE-LCHlch(21.60, 57.54, 314.21°)
OKLaboklab(34.22% 0.0836 -0.1173)
OKLCHoklch(34.22% 0.144 305.5)
XYZxyz(6.2859, 3.4061, 16.2426)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1972 #407219
analogous
#1F1972 #4B1972 #72196D
triadic
#4B1972 #724B19 #19724B
tetradic
#4B1972 #721F19 #407219 #196D72
square
#4B1972 #721F19 #407219 #196D72
split-complementary
#4B1972 #6D7219 #19721F
monochromatic
#110619 #2A0E40 #4B1972 #6C24A4 #8D33D2

Accessibility & contrast

On white

12.49
#4B1972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B1972
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1972#FFFFFF#000000##FFFFFF
##4B19721.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003275
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#442F44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4b1972;
/* rgb */ color: rgb(75, 25, 114);
/* oklch */ color: oklch(34.2% 0.144 305.5);
Tailwind
colors: {
  custom: {
    50: '#825b9b',
    500: '#4b1972',
    950: '#000000',
  },
}
SCSS
$custom: #4b1972;
$custom-light: #825b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1972",
  "rgb": {
    "r": 75,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 273.708,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.34218,
    "c": 0.14407,
    "h": 305.5
  },
  "luminance": 0.03406
}

Semantic roles & 50–950 ramp

primary
#4B1972
secondary
#6DA740
accent
#E7418A
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B1972

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

Preview Lab → · Contrast checker → · Palette generator →

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