#4F2D8A#4F2D8A

#4F2D8A is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.3% C 0.147 H 295.7°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#4F2D8A
RGBrgb(79, 45, 138)
HSLhsl(262, 51%, 36%)
HSVhsv(262, 67%, 54%)
CMYKcmyk(42.8%, 67.4%, 0%, 45.9%)
CIE-LABlab(27.77, 37.08, -46.37)
CIE-LCHlch(27.77, 59.37, 308.65°)
OKLaboklab(39.35% 0.0636 -0.1324)
OKLCHoklch(39.35% 0.147 295.7)
XYZxyz(8.7491, 5.3738, 24.6161)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2D8A #688A2D
analogous
#2D398A #4F2D8A #7D2D8A
triadic
#4F2D8A #8A4F2D #2D8A4F
tetradic
#4F2D8A #8A2D39 #688A2D #2D8A7D
square
#4F2D8A #8A2D39 #688A2D #2D8A7D
split-complementary
#4F2D8A #8A7D2D #398A2D
monochromatic
#1A0F2E #351E5C #4F2D8A #693CB8 #8B65CD

Accessibility & contrast

On white

10.12
#4F2D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4F2D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2D8A
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2D8A#FFFFFF#000000##FFFFFF
##4F2D8A1.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#404357
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4f2d8a;
/* rgb */ color: rgb(79, 45, 138);
/* oklch */ color: oklch(39.3% 0.147 295.7);
Tailwind
colors: {
  custom: {
    50: '#8568ad',
    500: '#4f2d8a',
    950: '#000000',
  },
}
SCSS
$custom: #4f2d8a;
$custom-light: #8568ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2d8a",
  "rgb": {
    "r": 79,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 261.935,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39347,
    "c": 0.14686,
    "h": 295.7
  },
  "luminance": 0.05374
}

Semantic roles & 50–950 ramp

primary
#4F2D8A
secondary
#95B360
accent
#DA4DA7
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4F2D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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