#4F2894#4F2894

#4F2894 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.166 H 294.0°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#4F2894
RGBrgb(79, 40, 148)
HSLhsl(262, 57%, 37%)
HSVhsv(262, 73%, 58%)
CMYKcmyk(46.6%, 73%, 0%, 42%)
CIE-LABlab(27.62, 42.60, -52.80)
CIE-LCHlch(27.62, 67.84, 308.90°)
OKLaboklab(39.5% 0.0672 -0.1512)
OKLCHoklch(39.5% 0.166 294)
XYZxyz(9.3271, 5.3177, 28.5462)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2894 #6D9428
analogous
#283794 #4F2894 #852894
triadic
#4F2894 #944F28 #28944F
tetradic
#4F2894 #942837 #6D9428 #289485
square
#4F2894 #942837 #6D9428 #289485
split-complementary
#4F2894 #948528 #379428
monochromatic
#1C0E34 #351B64 #4F2894 #6935C4 #8B62D5

Accessibility & contrast

On white

10.18
#4F2894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4F2894 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2894
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2894#FFFFFF#000000##FFFFFF
##4F28941.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004297
Deuteranopia (green-blind)
#003F92
Tritanopia (blue-blind)
#3B445B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f2894;
/* rgb */ color: rgb(79, 40, 148);
/* oklch */ color: oklch(39.5% 0.166 294.0);
Tailwind
colors: {
  custom: {
    50: '#8766b4',
    500: '#4f2894',
    950: '#000000',
  },
}
SCSS
$custom: #4f2894;
$custom-light: #8766b4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2894",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 148
  },
  "hsl": {
    "h": 261.667,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39496,
    "c": 0.1655,
    "h": 294
  },
  "luminance": 0.05318
}

Semantic roles & 50–950 ramp

primary
#4F2894
secondary
#99BA5E
accent
#E147A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2894

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

Preview Lab → · Contrast checker → · Palette generator →

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