#4F2888#4F2888

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

Color values

HEX#4F2888
RGBrgb(79, 40, 136)
HSLhsl(264, 55%, 35%)
HSVhsv(264, 71%, 53%)
CMYKcmyk(41.9%, 70.6%, 0%, 46.7%)
CIE-LABlab(26.61, 39.27, -47.01)
CIE-LCHlch(26.61, 61.25, 309.87°)
OKLaboklab(38.46% 0.0695 -0.1342)
OKLCHoklch(38.46% 0.151 297.4)
XYZxyz(8.4260, 4.9573, 23.8007)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2888 #618828
analogous
#283188 #4F2888 #7F2888
triadic
#4F2888 #884F28 #28884F
tetradic
#4F2888 #882831 #618828 #28887F
square
#4F2888 #882831 #618828 #28887F
split-complementary
#4F2888 #887F28 #318828
monochromatic
#180C29 #341A59 #4F2888 #6A36B7 #8A5BCF

Accessibility & contrast

On white

10.55
#4F2888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4F2888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2888
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2888#FFFFFF#000000##FFFFFF
##4F28881.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8B
Deuteranopia (green-blind)
#003E86
Tritanopia (blue-blind)
#413F55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4f2888;
/* rgb */ color: rgb(79, 40, 136);
/* oklch */ color: oklch(38.5% 0.151 297.4);
Tailwind
colors: {
  custom: {
    50: '#8665ab',
    500: '#4f2888',
    950: '#000000',
  },
}
SCSS
$custom: #4f2888;
$custom-light: #8665ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2888",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 136
  },
  "hsl": {
    "h": 264.375,
    "s": 54.545,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38463,
    "c": 0.15116,
    "h": 297.4
  },
  "luminance": 0.04957
}

Semantic roles & 50–950 ramp

primary
#4F2888
secondary
#8FB458
accent
#DE4AA2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4F2888

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

Preview Lab → · Contrast checker → · Palette generator →

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