#4F2298#4F2298

#4F2298 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.177 H 293.9°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#4F2298
RGBrgb(79, 34, 152)
HSLhsl(263, 63%, 36%)
HSVhsv(263, 78%, 60%)
CMYKcmyk(48%, 77.6%, 0%, 40.4%)
CIE-LABlab(26.94, 46.64, -56.36)
CIE-LCHlch(26.94, 73.16, 309.61°)
OKLaboklab(39.13% 0.0716 -0.1617)
OKLCHoklch(39.13% 0.177 293.9)
XYZxyz(9.4624, 5.0730, 30.1803)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2298 #6B9822
analogous
#223098 #4F2298 #8A2298
triadic
#4F2298 #984F22 #22984F
tetradic
#4F2298 #982230 #6B9822 #22988A
square
#4F2298 #982230 #6B9822 #22988A
split-complementary
#4F2298 #988A22 #309822
monochromatic
#1B0C34 #351766 #4F2298 #692DCA #8B5ADA

Accessibility & contrast

On white

10.42
#4F2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4F2298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2298
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2298#FFFFFF#000000##FFFFFF
##4F22981.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003E96
Tritanopia (blue-blind)
#39425C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f2298;
/* rgb */ color: rgb(79, 34, 152);
/* oklch */ color: oklch(39.1% 0.177 293.9);
Tailwind
colors: {
  custom: {
    50: '#8862b7',
    500: '#4f2298',
    950: '#000000',
  },
}
SCSS
$custom: #4f2298;
$custom-light: #8862b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2298",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 262.881,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39127,
    "c": 0.17682,
    "h": 293.9
  },
  "luminance": 0.05073
}

Semantic roles & 50–950 ramp

primary
#4F2298
secondary
#97BE57
accent
#E641A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4F2298

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

Preview Lab → · Contrast checker → · Palette generator →

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