#4F2B7A#4F2B7A

#4F2B7A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.8% C 0.130 H 301.4°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#4F2B7A
RGBrgb(79, 43, 122)
HSLhsl(267, 48%, 32%)
HSVhsv(267, 65%, 48%)
CMYKcmyk(35.2%, 64.8%, 0%, 52.2%)
CIE-LABlab(26.14, 33.76, -38.97)
CIE-LCHlch(26.14, 51.56, 310.90°)
OKLaboklab(37.78% 0.0676 -0.1106)
OKLCHoklch(37.78% 0.13 301.4)
XYZxyz(7.6003, 4.7951, 18.9337)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2B7A #567A2B
analogous
#2B2E7A #4F2B7A #772B7A
triadic
#4F2B7A #7A4F2B #2B7A4F
tetradic
#4F2B7A #7A2B2E #567A2B #2B7A77
square
#4F2B7A #7A2B2E #567A2B #2B7A77
split-complementary
#4F2B7A #7A772B #2E7A2B
monochromatic
#140B1F #321B4D #4F2B7A #6C3BA7 #8B5AC5

Accessibility & contrast

On white

10.72
#4F2B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4F2B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2B7A
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2B7A#FFFFFF#000000##FFFFFF
##4F2B7A1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7C
Deuteranopia (green-blind)
#103D78
Tritanopia (blue-blind)
#463C4E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4f2b7a;
/* rgb */ color: rgb(79, 43, 122);
/* oklch */ color: oklch(37.8% 0.130 301.4);
Tailwind
colors: {
  custom: {
    50: '#8466a1',
    500: '#4f2b7a',
    950: '#000000',
  },
}
SCSS
$custom: #4f2b7a;
$custom-light: #8466a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2b7a",
  "rgb": {
    "r": 79,
    "g": 43,
    "b": 122
  },
  "hsl": {
    "h": 267.342,
    "s": 47.879,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37784,
    "c": 0.12962,
    "h": 301.4
  },
  "luminance": 0.04795
}

Semantic roles & 50–950 ramp

primary
#4F2B7A
secondary
#84AB56
accent
#D7509A
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4F2B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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