#4F2E7E#4F2E7E

#4F2E7E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.6% C 0.130 H 299.2°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#4F2E7E
RGBrgb(79, 46, 126)
HSLhsl(265, 47%, 34%)
HSVhsv(265, 63%, 49%)
CMYKcmyk(37.3%, 63.5%, 0%, 50.6%)
CIE-LABlab(27.08, 33.12, -39.98)
CIE-LCHlch(27.08, 51.92, 309.64°)
OKLaboklab(38.56% 0.0635 -0.1136)
OKLCHoklch(38.56% 0.13 299.2)
XYZxyz(7.9664, 5.1225, 20.3037)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2E7E #5D7E2E
analogous
#2E357E #4F2E7E #772E7E
triadic
#4F2E7E #7E4F2E #2E7E4F
tetradic
#4F2E7E #7E2E35 #5D7E2E #2E7E77
square
#4F2E7E #7E2E35 #5D7E2E #2E7E77
split-complementary
#4F2E7E #7E772E #357E2E
monochromatic
#170D24 #331E51 #4F2E7E #6B3EAB #8A61C5

Accessibility & contrast

On white

10.37
#4F2E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4F2E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2E7E
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2E7E#FFFFFF#000000##FFFFFF
##4F2E7E1.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#0F3F7C
Tritanopia (blue-blind)
#453F51
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f2e7e;
/* rgb */ color: rgb(79, 46, 126);
/* oklch */ color: oklch(38.6% 0.130 299.2);
Tailwind
colors: {
  custom: {
    50: '#8468a4',
    500: '#4f2e7e',
    950: '#000000',
  },
}
SCSS
$custom: #4f2e7e;
$custom-light: #8468a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2e7e",
  "rgb": {
    "r": 79,
    "g": 46,
    "b": 126
  },
  "hsl": {
    "h": 264.75,
    "s": 46.512,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38558,
    "c": 0.13014,
    "h": 299.2
  },
  "luminance": 0.05123
}

Semantic roles & 50–950 ramp

primary
#4F2E7E
secondary
#8BAC5C
accent
#D6529F
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4F2E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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