#4B1971#4B1971

#4B1971 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.143 H 305.9°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#4B1971
RGBrgb(75, 25, 113)
HSLhsl(274, 64%, 27%)
HSVhsv(274, 78%, 44%)
CMYKcmyk(33.6%, 77.9%, 0%, 55.7%)
CIE-LABlab(21.52, 39.87, -40.73)
CIE-LCHlch(21.52, 57.00, 314.39°)
OKLaboklab(34.13% 0.0838 -0.1158)
OKLCHoklch(34.13% 0.143 305.9)
XYZxyz(6.2293, 3.3834, 15.9445)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1971 #3F7119
analogous
#1F1971 #4B1971 #71196B
triadic
#4B1971 #714B19 #19714B
tetradic
#4B1971 #711F19 #3F7119 #196B71
square
#4B1971 #711F19 #3F7119 #196B71
split-complementary
#4B1971 #6B7119 #19711F
monochromatic
#110619 #2A0E3F #4B1971 #6C24A3 #8D33D2

Accessibility & contrast

On white

12.53
#4B1971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B1971
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1971#FFFFFF#000000##FFFFFF
##4B19711.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#00346F
Tritanopia (blue-blind)
#442F44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4b1971;
/* rgb */ color: rgb(75, 25, 113);
/* oklch */ color: oklch(34.1% 0.143 305.9);
Tailwind
colors: {
  custom: {
    50: '#815b9a',
    500: '#4b1971',
    950: '#000000',
  },
}
SCSS
$custom: #4b1971;
$custom-light: #815b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1971",
  "rgb": {
    "r": 75,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 274.091,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.34133,
    "c": 0.143,
    "h": 305.9
  },
  "luminance": 0.03383
}

Semantic roles & 50–950 ramp

primary
#4B1971
secondary
#6CA640
accent
#E74189
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B1971

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

Preview Lab → · Contrast checker → · Palette generator →

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