#4B1F97#4B1F97

#4B1F97 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.179 H 292.4°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#4B1F97
RGBrgb(75, 31, 151)
HSLhsl(262, 66%, 36%)
HSVhsv(262, 79%, 59%)
CMYKcmyk(50.3%, 79.5%, 0%, 40.8%)
CIE-LABlab(25.89, 47.13, -57.49)
CIE-LCHlch(25.89, 74.34, 309.34°)
OKLaboklab(38.26% 0.0681 -0.1651)
OKLCHoklch(38.26% 0.179 292.4)
XYZxyz(8.9760, 4.7099, 29.7083)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1F97 #6B971F
analogous
#1F2F97 #4B1F97 #871F97
triadic
#4B1F97 #974B1F #1F974B
tetradic
#4B1F97 #971F2F #6B971F #1F9787
square
#4B1F97 #971F2F #6B971F #1F9787
split-complementary
#4B1F97 #97871F #2F971F
monochromatic
#190A31 #321564 #4B1F97 #6429CA #8654DC

Accessibility & contrast

On white

10.81
#4B1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4B1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1F97
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1F97#FFFFFF#000000##FFFFFF
##4B1F971.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#32415B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4b1f97;
/* rgb */ color: rgb(75, 31, 151);
/* oklch */ color: oklch(38.3% 0.179 292.4);
Tailwind
colors: {
  custom: {
    50: '#8660b7',
    500: '#4b1f97',
    950: '#000000',
  },
}
SCSS
$custom: #4b1f97;
$custom-light: #8660b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1f97",
  "rgb": {
    "r": 75,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 262,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38255,
    "c": 0.17856,
    "h": 292.4
  },
  "luminance": 0.0471
}

Semantic roles & 50–950 ramp

primary
#4B1F97
secondary
#97BF52
accent
#E93FAB
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4B1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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