#4B2F97#4B2F97

#4B2F97 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.3% C 0.160 H 289.6°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#4B2F97
RGBrgb(75, 47, 151)
HSLhsl(256, 53%, 39%)
HSVhsv(256, 69%, 59%)
CMYKcmyk(50.3%, 68.9%, 0%, 40.8%)
CIE-LABlab(28.81, 38.93, -52.72)
CIE-LCHlch(28.81, 65.54, 306.44°)
OKLaboklab(40.32% 0.0538 -0.1512)
OKLCHoklch(40.32% 0.16 289.6)
XYZxyz(9.5025, 5.7629, 29.8838)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2F97 #7B972F
analogous
#2F4797 #4B2F97 #7F2F97
triadic
#4B2F97 #974B2F #2F974B
tetradic
#4B2F97 #972F47 #7B972F #2F977F
square
#4B2F97 #972F47 #7B972F #2F977F
split-complementary
#4B2F97 #977F2F #47972F
monochromatic
#1D123A #342068 #4B2F97 #6340C3 #896ED2

Accessibility & contrast

On white

9.76
#4B2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4B2F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2F97
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2F97#FFFFFF#000000##FFFFFF
##4B2F971.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#31495F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4b2f97;
/* rgb */ color: rgb(75, 47, 151);
/* oklch */ color: oklch(40.3% 0.160 289.6);
Tailwind
colors: {
  custom: {
    50: '#856ab6',
    500: '#4b2f97',
    950: '#000000',
  },
}
SCSS
$custom: #4b2f97;
$custom-light: #856ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2f97",
  "rgb": {
    "r": 75,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 256.154,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40317,
    "c": 0.16047,
    "h": 289.6
  },
  "luminance": 0.05763
}

Semantic roles & 50–950 ramp

primary
#4B2F97
secondary
#A4B968
accent
#DC4CB5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4B2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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