#4F2A85#4F2A85

#4F2A85 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.5% C 0.145 H 297.9°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#4F2A85
RGBrgb(79, 42, 133)
HSLhsl(264, 52%, 34%)
HSVhsv(264, 68%, 52%)
CMYKcmyk(40.6%, 68.4%, 0%, 47.8%)
CIE-LABlab(26.77, 37.35, -44.88)
CIE-LCHlch(26.77, 58.39, 309.77°)
OKLaboklab(38.5% 0.0677 -0.128)
OKLCHoklch(38.5% 0.145 297.9)
XYZxyz(8.2850, 5.0115, 22.7166)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2A85 #60852A
analogous
#2A3285 #4F2A85 #7D2A85
triadic
#4F2A85 #854F2A #2A854F
tetradic
#4F2A85 #852A32 #60852A #2A857D
square
#4F2A85 #852A32 #60852A #2A857D
split-complementary
#4F2A85 #857D2A #32852A
monochromatic
#180D28 #331B56 #4F2A85 #6B39B4 #8A5DCC

Accessibility & contrast

On white

10.49
#4F2A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4F2A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2A85
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2A85#FFFFFF#000000##FFFFFF
##4F2A851.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F88
Deuteranopia (green-blind)
#003E83
Tritanopia (blue-blind)
#423F54
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4f2a85;
/* rgb */ color: rgb(79, 42, 133);
/* oklch */ color: oklch(38.5% 0.145 297.9);
Tailwind
colors: {
  custom: {
    50: '#8566a9',
    500: '#4f2a85',
    950: '#000000',
  },
}
SCSS
$custom: #4f2a85;
$custom-light: #8566a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2a85",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 133
  },
  "hsl": {
    "h": 264.396,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38499,
    "c": 0.1448,
    "h": 297.9
  },
  "luminance": 0.05012
}

Semantic roles & 50–950 ramp

primary
#4F2A85
secondary
#8EB259
accent
#DB4CA1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4F2A85

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

Preview Lab → · Contrast checker → · Palette generator →

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