#4F2D81#4F2D81

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

Color values

HEX#4F2D81
RGBrgb(79, 45, 129)
HSLhsl(264, 48%, 34%)
HSVhsv(264, 65%, 51%)
CMYKcmyk(38.8%, 65.1%, 0%, 49.4%)
CIE-LABlab(27.08, 34.54, -41.86)
CIE-LCHlch(27.08, 54.27, 309.53°)
OKLaboklab(38.63% 0.0646 -0.1191)
OKLCHoklch(38.63% 0.135 298.5)
XYZxyz(8.1243, 5.1239, 21.3256)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2D81 #5F812D
analogous
#2D3581 #4F2D81 #792D81
triadic
#4F2D81 #814F2D #2D814F
tetradic
#4F2D81 #812D35 #5F812D #2D8179
square
#4F2D81 #812D35 #5F812D #2D8179
split-complementary
#4F2D81 #81792D #35812D
monochromatic
#170D26 #331D54 #4F2D81 #6B3DAE #8A61C8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4F2D81#FFFFFF#000000##FFFFFF
##4F2D811.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)
#004084
Deuteranopia (green-blind)
#043F7F
Tritanopia (blue-blind)
#434052
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f2d81;
/* rgb */ color: rgb(79, 45, 129);
/* oklch */ color: oklch(38.6% 0.135 298.5);
Tailwind
colors: {
  custom: {
    50: '#8468a6',
    500: '#4f2d81',
    950: '#000000',
  },
}
SCSS
$custom: #4f2d81;
$custom-light: #8468a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2d81",
  "rgb": {
    "r": 79,
    "g": 45,
    "b": 129
  },
  "hsl": {
    "h": 264.286,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38631,
    "c": 0.13549,
    "h": 298.5
  },
  "luminance": 0.05124
}

Semantic roles & 50–950 ramp

primary
#4F2D81
secondary
#8DAE5C
accent
#D850A1
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4F2D81

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

Preview Lab → · Contrast checker → · Palette generator →

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