#4F1255#4F1255

#4F1255 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 31.8% C 0.125 H 324.0°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#4F1255
RGBrgb(79, 18, 85)
HSLhsl(295, 65%, 20%)
HSVhsv(295, 79%, 33%)
CMYKcmyk(7.1%, 78.8%, 0%, 66.7%)
CIE-LABlab(19.02, 37.40, -26.28)
CIE-LCHlch(19.02, 45.71, 324.91°)
OKLaboklab(31.82% 0.1009 -0.0732)
OKLCHoklch(31.82% 0.125 324)
XYZxyz(5.0803, 2.7511, 8.8560)
Luminance0.0275 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1255 #185512
analogous
#2D1255 #4F1255 #551239
triadic
#4F1255 #554F12 #12554F
tetradic
#4F1255 #552D12 #185512 #123955
square
#4F1255 #552D12 #185512 #123955
split-complementary
#4F1255 #395512 #12552D
monochromatic
#170519 #200722 #4F1255 #7E1D88 #AD27BA

Accessibility & contrast

On white

13.55
#4F1255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#4F1255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1255
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1255#FFFFFF#000000##FFFFFF
##4F12551.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A57
Deuteranopia (green-blind)
#1E3153
Tritanopia (blue-blind)
#511E32
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4f1255;
/* rgb */ color: rgb(79, 18, 85);
/* oklch */ color: oklch(31.8% 0.125 324.0);
Tailwind
colors: {
  custom: {
    50: '#835785',
    500: '#4f1255',
    950: '#000000',
  },
}
SCSS
$custom: #4f1255;
$custom-light: #835785;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1255",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 294.627,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.31822,
    "c": 0.12472,
    "h": 324
  },
  "luminance": 0.02751
}

Semantic roles & 50–950 ramp

primary
#4F1255
secondary
#3D8E35
accent
#E8404F
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4F1255

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

Preview Lab → · Contrast checker → · Palette generator →

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