#4B1F7E#4B1F7E

#4B1F7E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.150 H 299.9°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#4B1F7E
RGBrgb(75, 31, 126)
HSLhsl(268, 61%, 31%)
HSVhsv(268, 75%, 49%)
CMYKcmyk(40.5%, 75.4%, 0%, 50.6%)
CIE-LABlab(23.61, 40.39, -45.63)
CIE-LCHlch(23.61, 60.94, 311.52°)
OKLaboklab(35.96% 0.0749 -0.1303)
OKLCHoklch(35.96% 0.15 299.9)
XYZxyz(7.1566, 3.9821, 20.1262)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1F7E #527E1F
analogous
#1F237E #4B1F7E #7A1F7E
triadic
#4B1F7E #7E4B1F #1F7E4B
tetradic
#4B1F7E #7E1F23 #527E1F #1F7E7A
square
#4B1F7E #7E1F23 #527E1F #1F7E7A
split-complementary
#4B1F7E #7E7A1F #237E1F
monochromatic
#11071C #2E134D #4B1F7E #682BAF #8746D1

Accessibility & contrast

On white

11.69
#4B1F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4B1F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1F7E
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1F7E#FFFFFF#000000##FFFFFF
##4B1F7E1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#3F374C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4b1f7e;
/* rgb */ color: rgb(75, 31, 126);
/* oklch */ color: oklch(36.0% 0.150 299.9);
Tailwind
colors: {
  custom: {
    50: '#825fa4',
    500: '#4b1f7e',
    950: '#000000',
  },
}
SCSS
$custom: #4b1f7e;
$custom-light: #825fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1f7e",
  "rgb": {
    "r": 75,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 267.789,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35955,
    "c": 0.15026,
    "h": 299.9
  },
  "luminance": 0.03982
}

Semantic roles & 50–950 ramp

primary
#4B1F7E
secondary
#80B148
accent
#E4449A
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4B1F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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