#4F2F7E#4F2F7E

#4F2F7E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.7% C 0.129 H 298.9°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#4F2F7E
RGBrgb(79, 47, 126)
HSLhsl(264, 46%, 34%)
HSVhsv(264, 63%, 49%)
CMYKcmyk(37.3%, 62.7%, 0%, 50.6%)
CIE-LABlab(27.30, 32.53, -39.63)
CIE-LCHlch(27.30, 51.27, 309.38°)
OKLaboklab(38.72% 0.0622 -0.1125)
OKLCHoklch(38.72% 0.129 298.9)
XYZxyz(8.0059, 5.2016, 20.3168)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2F7E #5E7E2F
analogous
#2F377E #4F2F7E #772F7E
triadic
#4F2F7E #7E4F2F #2F7E4F
tetradic
#4F2F7E #7E2F37 #5E7E2F #2F7E77
square
#4F2F7E #7E2F37 #5E7E2F #2F7E77
split-complementary
#4F2F7E #7E772F #377E2F
monochromatic
#170E25 #331E51 #4F2F7E #6B40AB #8A63C5

Accessibility & contrast

On white

10.29
#4F2F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4F2F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2F7E
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2F7E#FFFFFF#000000##FFFFFF
##4F2F7E1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#11407C
Tritanopia (blue-blind)
#454052
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f2f7e;
/* rgb */ color: rgb(79, 47, 126);
/* oklch */ color: oklch(38.7% 0.129 298.9);
Tailwind
colors: {
  custom: {
    50: '#8469a4',
    500: '#4f2f7e',
    950: '#000000',
  },
}
SCSS
$custom: #4f2f7e;
$custom-light: #8469a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2f7e",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 264.304,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38719,
    "c": 0.1286,
    "h": 298.9
  },
  "luminance": 0.05202
}

Semantic roles & 50–950 ramp

primary
#4F2F7E
secondary
#8CAC5D
accent
#D552A0
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4F2F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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