#4B1FA7#4B1FA7

#4B1FA7 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.196 H 288.7°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#4B1FA7
RGBrgb(75, 31, 167)
HSLhsl(259, 69%, 39%)
HSVhsv(259, 81%, 65%)
CMYKcmyk(55.1%, 81.4%, 0%, 34.5%)
CIE-LABlab(27.48, 51.47, -64.63)
CIE-LCHlch(27.48, 82.62, 308.53°)
OKLaboklab(39.84% 0.0628 -0.186)
OKLCHoklch(39.84% 0.196 288.7)
XYZxyz(10.3646, 5.2653, 37.0219)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1FA7 #7BA71F
analogous
#1F37A7 #4B1FA7 #8F1FA7
triadic
#4B1FA7 #A74B1F #1FA74B
tetradic
#4B1FA7 #A71F37 #7BA71F #1FA78F
square
#4B1FA7 #A71F37 #7BA71F #1FA78F
split-complementary
#4B1FA7 #A78F1F #37A71F
monochromatic
#1D0C40 #341573 #4B1FA7 #632BD8 #895FE1

Accessibility & contrast

On white

10.23
#4B1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4B1FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1FA7
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1FA7#FFFFFF#000000##FFFFFF
##4B1FA71.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AB
Deuteranopia (green-blind)
#003DA5
Tritanopia (blue-blind)
#254864
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4b1fa7;
/* rgb */ color: rgb(75, 31, 167);
/* oklch */ color: oklch(39.8% 0.196 288.7);
Tailwind
colors: {
  custom: {
    50: '#8861c2',
    500: '#4b1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #4b1fa7;
$custom-light: #8861c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1fa7",
  "rgb": {
    "r": 75,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 259.412,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39835,
    "c": 0.1963,
    "h": 288.7
  },
  "luminance": 0.05266
}

Semantic roles & 50–950 ramp

primary
#4B1FA7
secondary
#A4C65C
accent
#EC3CB3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0513
muted
#7D7A82

Preview Lab

Preview with #4B1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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