#4F2D8B#4F2D8B

#4F2D8B is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.148 H 295.4°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#4F2D8B
RGBrgb(79, 45, 139)
HSLhsl(262, 51%, 36%)
HSVhsv(262, 68%, 55%)
CMYKcmyk(43.2%, 67.6%, 0%, 45.5%)
CIE-LABlab(27.85, 37.36, -46.86)
CIE-LCHlch(27.85, 59.93, 308.57°)
OKLaboklab(39.43% 0.0635 -0.1338)
OKLCHoklch(39.43% 0.148 295.4)
XYZxyz(8.8218, 5.4029, 24.9992)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2D8B #698B2D
analogous
#2D3A8B #4F2D8B #7E2D8B
triadic
#4F2D8B #8B4F2D #2D8B4F
tetradic
#4F2D8B #8B2D3A #698B2D #2D8B7E
square
#4F2D8B #8B2D3A #698B2D #2D8B7E
split-complementary
#4F2D8B #8B7E2D #3A8B2D
monochromatic
#1A0F2F #351E5D #4F2D8B #693CB9 #8B65CD

Accessibility & contrast

On white

10.09
#4F2D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4F2D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2D8B
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2D8B#FFFFFF#000000##FFFFFF
##4F2D8B1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#3F4358
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4f2d8b;
/* rgb */ color: rgb(79, 45, 139);
/* oklch */ color: oklch(39.4% 0.148 295.4);
Tailwind
colors: {
  custom: {
    50: '#8668ae',
    500: '#4f2d8b',
    950: '#000000',
  },
}
SCSS
$custom: #4f2d8b;
$custom-light: #8668ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2d8b",
  "rgb": {
    "r": 79,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 261.702,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39429,
    "c": 0.14811,
    "h": 295.4
  },
  "luminance": 0.05403
}

Semantic roles & 50–950 ramp

primary
#4F2D8B
secondary
#95B460
accent
#DB4DA7
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4F2D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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