#4F2B7F#4F2B7F

#4F2B7F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.2% C 0.136 H 299.6°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#4F2B7F
RGBrgb(79, 43, 127)
HSLhsl(266, 49%, 33%)
HSVhsv(266, 66%, 50%)
CMYKcmyk(37.8%, 66.1%, 0%, 50.2%)
CIE-LABlab(26.51, 35.13, -41.53)
CIE-LCHlch(26.51, 54.40, 310.23°)
OKLaboklab(38.17% 0.0672 -0.1181)
OKLCHoklch(38.17% 0.136 299.6)
XYZxyz(7.9181, 4.9222, 20.6075)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2B7F #5B7F2B
analogous
#2B317F #4F2B7F #792B7F
triadic
#4F2B7F #7F4F2B #2B7F4F
tetradic
#4F2B7F #7F2B31 #5B7F2B #2B7F79
square
#4F2B7F #7F2B31 #5B7F2B #2B7F79
split-complementary
#4F2B7F #7F792B #317F2B
monochromatic
#160C24 #331C51 #4F2B7F #6B3AAD #8B5CC8

Accessibility & contrast

On white

10.58
#4F2B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4F2B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2B7F
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2B7F#FFFFFF#000000##FFFFFF
##4F2B7F1.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#043E7D
Tritanopia (blue-blind)
#443E51
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4f2b7f;
/* rgb */ color: rgb(79, 43, 127);
/* oklch */ color: oklch(38.2% 0.136 299.6);
Tailwind
colors: {
  custom: {
    50: '#8467a5',
    500: '#4f2b7f',
    950: '#000000',
  },
}
SCSS
$custom: #4f2b7f;
$custom-light: #8467a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2b7f",
  "rgb": {
    "r": 79,
    "g": 43,
    "b": 127
  },
  "hsl": {
    "h": 265.714,
    "s": 49.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38169,
    "c": 0.13591,
    "h": 299.6
  },
  "luminance": 0.04922
}

Semantic roles & 50–950 ramp

primary
#4F2B7F
secondary
#89AE58
accent
#D94F9E
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4F2B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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