#4F2299#4F2299

#4F2299 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.178 H 293.6°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#4F2299
RGBrgb(79, 34, 153)
HSLhsl(263, 64%, 37%)
HSVhsv(263, 78%, 60%)
CMYKcmyk(48.4%, 77.8%, 0%, 40%)
CIE-LABlab(27.03, 46.91, -56.83)
CIE-LCHlch(27.03, 73.69, 309.54°)
OKLaboklab(39.22% 0.0713 -0.163)
OKLCHoklch(39.22% 0.178 293.6)
XYZxyz(9.5447, 5.1059, 30.6135)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2299 #6C9922
analogous
#223199 #4F2299 #8B2299
triadic
#4F2299 #994F22 #22994F
tetradic
#4F2299 #992231 #6C9922 #22998B
square
#4F2299 #992231 #6C9922 #22998B
split-complementary
#4F2299 #998B22 #319922
monochromatic
#1B0C35 #351767 #4F2299 #692DCB #8B5BDB

Accessibility & contrast

On white

10.39
#4F2299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4F2299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2299
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2299#FFFFFF#000000##FFFFFF
##4F22991.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419C
Deuteranopia (green-blind)
#003E97
Tritanopia (blue-blind)
#38435C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f2299;
/* rgb */ color: rgb(79, 34, 153);
/* oklch */ color: oklch(39.2% 0.178 293.6);
Tailwind
colors: {
  custom: {
    50: '#8862b8',
    500: '#4f2299',
    950: '#000000',
  },
}
SCSS
$custom: #4f2299;
$custom-light: #8862b8;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2299",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 153
  },
  "hsl": {
    "h": 262.689,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3922,
    "c": 0.17795,
    "h": 293.6
  },
  "luminance": 0.05106
}

Semantic roles & 50–950 ramp

primary
#4F2299
secondary
#98BF58
accent
#E741A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4F2299

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

Preview Lab → · Contrast checker → · Palette generator →

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