#4B2F7D#4B2F7D

#4B2F7D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.2% C 0.127 H 296.5°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#4B2F7D
RGBrgb(75, 47, 125)
HSLhsl(262, 45%, 34%)
HSVhsv(262, 62%, 49%)
CMYKcmyk(40%, 62.4%, 0%, 51%)
CIE-LABlab(26.76, 31.27, -39.89)
CIE-LCHlch(26.76, 50.69, 308.09°)
OKLaboklab(38.2% 0.0565 -0.1135)
OKLCHoklch(38.2% 0.127 296.5)
XYZxyz(7.6189, 5.0094, 19.9636)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2F7D #617D2F
analogous
#2F3A7D #4B2F7D #722F7D
triadic
#4B2F7D #7D4B2F #2F7D4B
tetradic
#4B2F7D #7D2F3A #617D2F #2F7D72
square
#4B2F7D #7D2F3A #617D2F #2F7D72
split-complementary
#4B2F7D #7D722F #3A7D2F
monochromatic
#160E24 #301E51 #4B2F7D #6640A9 #8562C4

Accessibility & contrast

On white

10.49
#4B2F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4B2F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2F7D
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2F7D#FFFFFF#000000##FFFFFF
##4B2F7D1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#0C3E7B
Tritanopia (blue-blind)
#3F4051
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4b2f7d;
/* rgb */ color: rgb(75, 47, 125);
/* oklch */ color: oklch(38.2% 0.127 296.5);
Tailwind
colors: {
  custom: {
    50: '#8169a3',
    500: '#4b2f7d',
    950: '#000000',
  },
}
SCSS
$custom: #4b2f7d;
$custom-light: #8169a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2f7d",
  "rgb": {
    "r": 75,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 261.538,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38195,
    "c": 0.12674,
    "h": 296.5
  },
  "luminance": 0.0501
}

Semantic roles & 50–950 ramp

primary
#4B2F7D
secondary
#8FAB5D
accent
#D553A6
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4B2F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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